From 90f66cbb82802555788d22c72987f179ba79251c Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Wed, 20 Dec 2023 18:25:51 +0100 Subject: [PATCH] [surepetcare] Fix NPE (#16088) Signed-off-by: Jacob Laursen --- .../internal/discovery/SurePetcareDiscoveryService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/discovery/SurePetcareDiscoveryService.java b/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/discovery/SurePetcareDiscoveryService.java index 89e6ec1a2..62be5dad9 100644 --- a/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/discovery/SurePetcareDiscoveryService.java +++ b/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/discovery/SurePetcareDiscoveryService.java @@ -89,6 +89,7 @@ public class SurePetcareDiscoveryService extends AbstractDiscoveryService @Override public void setThingHandler(@Nullable ThingHandler handler) { if (handler instanceof SurePetcareBridgeHandler bridgeHandler) { + this.bridgeHandler = bridgeHandler; bridgeUID = bridgeHandler.getUID(); } }