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

Commit 537a6d8a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: Add NULL check before accessing device data"

parents 578c9688 e9201620
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ public class BluetoothController extends BroadcastReceiver {
            Set<BluetoothDevice> devices = adapter.getBondedDevices();
            if (devices != null) {
                for (BluetoothDevice device : devices) {
                    if (device.getBondState() != BluetoothDevice.BOND_NONE) {
                    if ((device != null) && (device.getBondState() != BluetoothDevice.BOND_NONE)) {
                        mBondedDevices.add(device);
                    }
                }