Fix NullPointerException (#18181)

Fixes #18180

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen 2025-01-24 23:06:33 +01:00
parent 783bcce165
commit 85555ad72b

View File

@ -220,7 +220,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;
} }
} }