Merge "Guard against null BluetoothDevice extras." into sc-dev am: 53deb833da am: a19c83bd2c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14556719 Change-Id: I8776d128f2417a62e1221726a3924ceae4cec233
This commit is contained in:
@@ -11494,7 +11494,9 @@ public class Intent implements Parcelable, Cloneable {
|
||||
if (mAction != null && mAction.startsWith("android.bluetooth.")
|
||||
&& hasExtra(BluetoothDevice.EXTRA_DEVICE)) {
|
||||
final BluetoothDevice device = getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
|
||||
device.prepareToEnterProcess(source);
|
||||
if (device != null) {
|
||||
device.prepareToEnterProcess(source);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user