From afd3b973b73fdab0dcc3269ed4853df7a2485d9c Mon Sep 17 00:00:00 2001 From: Ondrej Pecta Date: Wed, 16 Aug 2023 20:15:18 +0200 Subject: [PATCH] [somfytahoma] fix NPE in case that HttpClient fails to start (#15442) Signed-off-by: Ondrej Pecta --- .../somfytahoma/internal/handler/SomfyTahomaBridgeHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/handler/SomfyTahomaBridgeHandler.java b/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/handler/SomfyTahomaBridgeHandler.java index 638b8383d08..5c032aee695 100644 --- a/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/handler/SomfyTahomaBridgeHandler.java +++ b/bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/handler/SomfyTahomaBridgeHandler.java @@ -195,7 +195,7 @@ public class SomfyTahomaBridgeHandler extends BaseBridgeHandler { try { httpClient.start(); } catch (Exception e) { - logger.debug("Cannot start http client for: {}", thing.getBridgeUID().getId(), e); + logger.debug("Cannot start http client for: {}", thing.getUID(), e); return; } // Remove the WWWAuth protocol handler since Tahoma is not fully compliant