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

Commit 0c33bd4c authored by Yuyang Huang's avatar Yuyang Huang Committed by Gerrit Code Review
Browse files

Merge "avoid NullPointerException" into main

parents bd4abaed b41ad4e4
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -293,7 +293,8 @@ public class BluetoothInCallService extends InCallService {
        }
        }


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


        public void onChildrenChanged(BluetoothCall call, List<BluetoothCall> children) {
        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;
                return;
            }
            }
            if (call.getChildrenIds().size() == 1) {
            if (call.getChildrenIds().size() == 1) {