Skip to content

Commit

Permalink
Fix NullPointerException (#18181)
Browse files Browse the repository at this point in the history
Fixes #18180

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
  • Loading branch information
jlaur committed Jan 25, 2025
1 parent 91fdd42 commit 37a858c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private void ensureConnected() {
}
for (BluetoothGattService service : dev.getGattServices()) {
for (BluetoothGattCharacteristic c : service.getGattCharacteristics()) {
if (c.getUuid().equalsIgnoreCase(uuid)) {
if (uuid.equalsIgnoreCase(c.getUuid())) {
return c;
}
}
Expand Down

0 comments on commit 37a858c

Please sign in to comment.