From 85555ad72bf5ad8c223aef2ebdc06e202bb06e8f Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Fri, 24 Jan 2025 23:06:33 +0100 Subject: [PATCH] Fix NullPointerException (#18181) Fixes #18180 Signed-off-by: Jacob Laursen --- .../binding/bluetooth/bluez/internal/BlueZBluetoothDevice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/BlueZBluetoothDevice.java b/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/BlueZBluetoothDevice.java index 9258e620ca2..d2e66189314 100644 --- a/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/BlueZBluetoothDevice.java +++ b/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/BlueZBluetoothDevice.java @@ -220,7 +220,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; } }