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

Commit 090b2dd5 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role)
Browse files

[automerger] DO NOT MERGE: BondStateMachine: Check for null before calling...

[automerger] DO NOT MERGE: BondStateMachine: Check for null before calling getDeviceType am: 39cda2a2 am: ecc5b621

Change-Id: I662c02b4325b9e7295719719c158e5f8712467d6
parents 2ef64864 ecc5b621
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -363,9 +363,9 @@ final class BondStateMachine extends StateMachine {

        mAdapterProperties.onBondStateChanged(device, newState);

        if ((devProp.getDeviceType() == BluetoothDevice.DEVICE_TYPE_CLASSIC
        if (devProp != null && ((devProp.getDeviceType() == BluetoothDevice.DEVICE_TYPE_CLASSIC
                || devProp.getDeviceType() == BluetoothDevice.DEVICE_TYPE_DUAL)
                && newState == BluetoothDevice.BOND_BONDED && devProp.getUuids() == null) {
                && newState == BluetoothDevice.BOND_BONDED && devProp.getUuids() == null)) {
            infoLog(device + " is bonded, wait for SDP complete to broadcast bonded intent");
            if (!mPendingBondedDevices.contains(device)) {
                mPendingBondedDevices.add(device);