Merge "BluetoothPairingRequest: Add null check for action" am: ed7662f6f6 am: 3366290e20 am: 5486a2fdd4

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1372268

Change-Id: Ia6bb375c12cf0acba4c5c79e292eefa2d69cddfe
This commit is contained in:
Treehugger Robot
2020-07-28 19:50:46 +00:00
committed by Automerger Merge Worker

View File

@@ -34,7 +34,7 @@ public final class BluetoothPairingRequest extends BroadcastReceiver {
@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)