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

Commit 01f2c9af authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by Android Git Automerger
Browse files

am d2b033ae: Add a missing check for null pointer.

* commit 'd2b033ae':
  Add a missing check for null pointer.
parents fc07d2b1 d2b033ae
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -348,8 +348,12 @@ public final class BluetoothEventManager {
                Log.e(TAG, "ACTION_PAIRING_CANCEL with no EXTRA_DEVICE");
                return;
            }
            int errorMsg = R.string.bluetooth_pairing_error_message;
            CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
            if (cachedDevice == null) {
                Log.e(TAG, "ACTION_PAIRING_CANCEL with no cached device");
                return;
            }
            int errorMsg = R.string.bluetooth_pairing_error_message;
            Utils.showError(context, cachedDevice.getName(), errorMsg);
        }
    }