Fix NullPointerException (#18181)

Fixes #18180

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
pull/18185/head
Jacob Laursen 2025-01-24 23:06:33 +01:00 committed by GitHub
parent 00d15574db
commit 29e909eeea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ public class BlueZBluetoothDevice extends BaseBluetoothDevice implements BlueZEv
}
for (BluetoothGattService service : dev.getGattServices()) {
for (BluetoothGattCharacteristic c : service.getGattCharacteristics()) {
if (c.getUuid().equalsIgnoreCase(uuid)) {
if (uuid.equalsIgnoreCase(c.getUuid())) {
return c;
}
}