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

Commit 5c155e1f authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "gtbs: Fix crash on remove call" am: adc1317c am: 736823f7 am: 6d63e2ef

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

Change-Id: I886b13e75b8af4726357c2146857b0f8818b3682
parents 7c06e695 6d63e2ef
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");