commit | 1805f666e7a88ce879dd3c281cbb8d0696c3e174 | [log] [tgz] |
---|---|---|
author | Chen Chen <cncn@google.com> | Thu Jul 23 16:27:50 2020 -0700 |
committer | Chen Chen <cncn@google.com> | Fri Jul 24 18:15:19 2020 +0000 |
tree | c9d594ca4dd9c2aee339631bc6c25c32498df54a | |
parent | bea26691e2fd2a50e4cbcff0f0fa0d222907ad33 [diff] |
BluetoothPairingRequest: Add null check for action Bug: 159728132 Test: Build Change-Id: I24668e20accf96c7469c9e1ab589b1383ab59d18
diff --git a/src/com/android/settings/bluetooth/BluetoothPairingRequest.java b/src/com/android/settings/bluetooth/BluetoothPairingRequest.java index 7da6342..3cd21f5 100644 --- a/src/com/android/settings/bluetooth/BluetoothPairingRequest.java +++ b/src/com/android/settings/bluetooth/BluetoothPairingRequest.java
@@ -34,7 +34,7 @@ @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); - if (!action.equals(BluetoothDevice.ACTION_PAIRING_REQUEST)) { + if (action == null || !action.equals(BluetoothDevice.ACTION_PAIRING_REQUEST)) { return; } // convert broadcast intent into activity intent (same action string)