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

Commit b41ad4e4 authored by Yuyang Huang's avatar Yuyang Huang
Browse files

avoid NullPointerException

Bug: 296331787
Change-Id: I6f65f01c9e0043637f68801949a2537871d9e257
Test: atest BluetoothInCallServiceTest
parent ba8d5134
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -299,7 +299,8 @@ public class BluetoothInCallService extends InCallService {
        }

        public void onParentChanged(BluetoothCall call) {
            if (call.isExternalCall()) {
            if (mCallInfo.isNullCall(call) || call.isExternalCall()) {
                Log.w(TAG, "null call or external call");
                return;
            }
            if (call.getParentId() != null) {
@@ -320,7 +321,8 @@ public class BluetoothInCallService extends InCallService {
        }

        public void onChildrenChanged(BluetoothCall call, List<BluetoothCall> children) {
            if (call.isExternalCall()) {
            if (mCallInfo.isNullCall(call) || call.isExternalCall()) {
                Log.w(TAG, "null call or external call");
                return;
            }
            if (call.getChildrenIds().size() == 1) {