]> git.basschouten.com Git - openhab-addons.git/commitdiff
[somfytahoma] fix NPE in case that HttpClient fails to start (#15442)
authorOndrej Pecta <opecta@gmail.com>
Wed, 16 Aug 2023 18:15:18 +0000 (20:15 +0200)
committerGitHub <noreply@github.com>
Wed, 16 Aug 2023 18:15:18 +0000 (20:15 +0200)
Signed-off-by: Ondrej Pecta <opecta@gmail.com>
bundles/org.openhab.binding.somfytahoma/src/main/java/org/openhab/binding/somfytahoma/internal/handler/SomfyTahomaBridgeHandler.java

index 638b8383d081b25a88270ddba0a2bfa9d6ac83f8..5c032aee69584112e603c0224933360606a550e4 100644 (file)
@@ -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