diff --git a/bundles/org.openhab.binding.tellstick/src/main/java/org/openhab/binding/tellstick/internal/live/TelldusLiveBridgeHandler.java b/bundles/org.openhab.binding.tellstick/src/main/java/org/openhab/binding/tellstick/internal/live/TelldusLiveBridgeHandler.java index c5ac655d0436b..35824457eee37 100644 --- a/bundles/org.openhab.binding.tellstick/src/main/java/org/openhab/binding/tellstick/internal/live/TelldusLiveBridgeHandler.java +++ b/bundles/org.openhab.binding.tellstick/src/main/java/org/openhab/binding/tellstick/internal/live/TelldusLiveBridgeHandler.java @@ -128,8 +128,8 @@ synchronized void refreshDeviceList() { private synchronized void updateDevices(TellstickNetDevices previouslist) throws TellstickException { TellstickNetDevices newList = controller.callRestMethod(TelldusLiveDeviceController.HTTP_TELLDUS_DEVICES, TellstickNetDevices.class); - logger.debug("Device list {}", newList.getDevices()); if (newList.getDevices() != null) { + logger.debug("Device list {}", newList.getDevices()); if (previouslist == null) { logger.debug("updateDevices, Creating devices."); for (TellstickNetDevice device : newList.getDevices()) { @@ -172,6 +172,8 @@ private synchronized void updateDevices(TellstickNetDevices previouslist) throws device.setUpdated(false); } } + } else { + logger.debug("updateDevices, rest API returned null"); } } diff --git a/bundles/org.openhab.binding.tellstick/src/main/java/org/openhab/binding/tellstick/internal/local/TelldusLocalBridgeHandler.java b/bundles/org.openhab.binding.tellstick/src/main/java/org/openhab/binding/tellstick/internal/local/TelldusLocalBridgeHandler.java index d1a7dd4a09b1f..be050ba42c61d 100644 --- a/bundles/org.openhab.binding.tellstick/src/main/java/org/openhab/binding/tellstick/internal/local/TelldusLocalBridgeHandler.java +++ b/bundles/org.openhab.binding.tellstick/src/main/java/org/openhab/binding/tellstick/internal/local/TelldusLocalBridgeHandler.java @@ -111,8 +111,8 @@ private synchronized void updateDevices(TellstickLocalDevicesDTO previouslist) throws TellstickException, InterruptedException { TellstickLocalDevicesDTO newList = controller .callRestMethod(TelldusLocalDeviceController.HTTP_LOCAL_API_DEVICES, TellstickLocalDevicesDTO.class); - logger.debug("Device list {}", newList.getDevices()); if (newList.getDevices() != null) { + logger.debug("Device list {}", newList.getDevices()); if (previouslist == null) { for (TellstickLocalDeviceDTO device : newList.getDevices()) { device.setUpdated(true); @@ -158,6 +158,8 @@ private synchronized void updateDevices(TellstickLocalDevicesDTO previouslist) device.setUpdated(false); } } + } else { + logger.debug("updateDevices, rest API returned null"); } }