DanaR: Fix NPE
This commit is contained in:
parent
75cb6d466c
commit
c383f471a7
|
@ -196,6 +196,7 @@ public abstract class AbstractDanaRExecutionService extends DaggerService {
|
|||
if (bluetoothAdapter != null) {
|
||||
Set<BluetoothDevice> bondedDevices = bluetoothAdapter.getBondedDevices();
|
||||
|
||||
if (bondedDevices != null)
|
||||
for (BluetoothDevice device : bondedDevices) {
|
||||
if (mDevName.equals(device.getName())) {
|
||||
mBTDevice = device;
|
||||
|
|
Loading…
Reference in a new issue