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

Commit d0e47ef6 authored by Chen Chen's avatar Chen Chen Committed by Gerrit Code Review
Browse files

Merge "BluetoothInCallService: Check null in OnCallRemoved"

parents 97e313df 2551675a
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