Fix NullPointerException (#18181)
Fixes #18180 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>pull/18185/head
parent
00d15574db
commit
29e909eeea
|
@ -219,7 +219,7 @@ public class BlueZBluetoothDevice extends BaseBluetoothDevice implements BlueZEv
|
||||||
}
|
}
|
||||||
for (BluetoothGattService service : dev.getGattServices()) {
|
for (BluetoothGattService service : dev.getGattServices()) {
|
||||||
for (BluetoothGattCharacteristic c : service.getGattCharacteristics()) {
|
for (BluetoothGattCharacteristic c : service.getGattCharacteristics()) {
|
||||||
if (c.getUuid().equalsIgnoreCase(uuid)) {
|
if (uuid.equalsIgnoreCase(c.getUuid())) {
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue