diff options
author | Satish Kumar Kodishala <quic_skodisha@quicinc.com> | 2022-03-21 12:28:06 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2022-05-12 22:57:24 -0700 |
commit | 2b4be04c720a95de52aed09fe81c9827a9acdcab (patch) | |
tree | 2c78e7fac691406c3536a429e616716c809c2ecb | |
parent | c8d9d51e0711dc40888eda02a9fdce62968b6569 (diff) |
Check for null call in onChildrenChanged callback
Check for null call when onChildrenChanged Callback is received
CRs-Fixed: 3152462
Change-Id: I87c2af42444a95152b71f5ae6e2c36e6962dc483
-rw-r--r-- | src/com/android/bluetooth/telephony/BluetoothInCallService.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/bluetooth/telephony/BluetoothInCallService.java b/src/com/android/bluetooth/telephony/BluetoothInCallService.java index 1dff2104a..31fca6d5f 100644 --- a/src/com/android/bluetooth/telephony/BluetoothInCallService.java +++ b/src/com/android/bluetooth/telephony/BluetoothInCallService.java @@ -291,10 +291,10 @@ public class BluetoothInCallService extends InCallService { } public void onDetailsChanged(BluetoothCall call, Call.Details details) { - Log.i(TAG, "onDetailsChanged call: " + call + "details: " + details); if (mCallInfo.isNullCall(call)) { return; } + Log.i(TAG, "onDetailsChanged call: " + call + "details: " + details); if (call.isExternalCall()) { onCallRemoved(call); } else { @@ -339,6 +339,9 @@ public class BluetoothInCallService extends InCallService { } public void onChildrenChanged(BluetoothCall call, List<BluetoothCall> children) { + if (mCallInfo.isNullCall(call)) { + return; + } if (call.isExternalCall()) { return; } |