diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/cloud/CloudDeviceListDTO.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/cloud/CloudDeviceListDTO.java index b00a979503c31..3f823b66958c6 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/cloud/CloudDeviceListDTO.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/cloud/CloudDeviceListDTO.java @@ -12,6 +12,7 @@ */ package org.openhab.binding.miio.internal.cloud; +import java.util.Collections; import java.util.List; import com.google.gson.annotations.Expose; @@ -29,6 +30,9 @@ public class CloudDeviceListDTO { private List cloudDevices = null; public List getCloudDevices() { + if (cloudDevices == null) { + return Collections.emptyList(); + } return cloudDevices; } }