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

Commit 4d08a485 authored by Sanket Padawe's avatar Sanket Padawe Committed by Andre Eisenbach
Browse files

Add Null checks while processing pairing cancel intent

Use case: Exception while handling pairing cancel
          Intent received
1. Initiate pairing from DUT to remote
2. Power off DUT after getting pairing popup

Root Cause:Crash observed in settings application

Change-Id: Ia05fe196ecf6a1d4ec26f85b0cf984e23089c728
Fix: Fixed by adding Null check in PairingCancelHandler
parent de335a7d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -355,9 +355,11 @@ public final class BluetoothEventManager {
                return;
            }
            int errorMsg = R.string.bluetooth_pairing_error_message;
            if (context != null && cachedDevice != null) {
                Utils.showError(context, cachedDevice.getName(), errorMsg);
            }
        }
    }

    private class DockEventHandler implements Handler {
        public void onReceive(Context context, Intent intent, BluetoothDevice device) {