diff options
| -rw-r--r-- | android/app/src/com/android/bluetooth/tbs/TbsGeneric.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/app/src/com/android/bluetooth/tbs/TbsGeneric.java b/android/app/src/com/android/bluetooth/tbs/TbsGeneric.java index c3a07ba3dc..a590a51916 100644 --- a/android/app/src/com/android/bluetooth/tbs/TbsGeneric.java +++ b/android/app/src/com/android/bluetooth/tbs/TbsGeneric.java @@ -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"); |
