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

Commit 2551675a authored by Chen Chen's avatar Chen Chen
Browse files

BluetoothInCallService: Check null in OnCallRemoved

Bug: 176184247
Test: atest BluetoothInstrumentationTests
Tag: #stability

Change-Id: I9d7a15644460ae82eafd9b508f732bd62f2eb469
parent 97e313df
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -472,7 +472,12 @@ public class BluetoothInCallService extends InCallService {
    @Override
    public void onCallRemoved(Call call) {
        super.onCallRemoved(call);
        onCallRemoved(getBluetoothCallById(call.getDetails().getTelecomCallId()));
        BluetoothCall bluetoothCall = getBluetoothCallById(call.getDetails().getTelecomCallId());
        if (bluetoothCall == null) {
            Log.w(TAG, "onCallRemoved, BluetoothCall is removed before registered");
            return;
        }
        onCallRemoved(bluetoothCall);
    }

    @Override