Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 736823f7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "gtbs: Fix crash on remove call" am: adc1317c

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1956998

Change-Id: I59e85403d2769f316060fefc4184e598041b4695
parents a21b3bae adc1317c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -444,6 +444,11 @@ public class TbsGeneric {
        }

        Integer callIndex = bearer.callIdIndexMap.remove(callId);
        if (callIndex == null) {
            Log.e(TAG, "callIndex: is null for callId" + callId);
            return;
        }

        TbsCall tbsCall = mCurrentCallsList.remove(callIndex);
        if (tbsCall == null) {
            Log.e(TAG, "callRemoved: no such call");