[surepetcare] Fix NPE (#16088)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
3e7162d69a
commit
90f66cbb82
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue