]> git.basschouten.com Git - openhab-addons.git/commitdiff
[amazonechocontrol] fix NPE (#8888)
authorJ-N-K <J-N-K@users.noreply.github.com>
Wed, 28 Oct 2020 15:04:17 +0000 (16:04 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Oct 2020 15:04:17 +0000 (16:04 +0100)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/smarthome/DynamicStateDescriptionSmartHome.java

index c526d617e1bdc2430788fc7373284f15a14122f0..e2c4e67271387ca9d97ea5b7f5f845407a4aed7c 100644 (file)
@@ -66,7 +66,7 @@ public class DynamicStateDescriptionSmartHome implements DynamicStateDescription
     public @Nullable StateDescription getStateDescription(Channel channel,
             @Nullable StateDescription originalStateDescription, @Nullable Locale locale) {
         ChannelTypeUID channelTypeUID = channel.getChannelTypeUID();
-        if (channelTypeUID != null || !BINDING_ID.equals(channelTypeUID.getBindingId())) {
+        if (channelTypeUID == null || !BINDING_ID.equals(channelTypeUID.getBindingId())) {
             return null;
         }
         if (originalStateDescription == null) {