diff --git a/bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/MqttChannelStateDescriptionProvider.java b/bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/MqttChannelStateDescriptionProvider.java index c146b8b23..3b81c30ba 100644 --- a/bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/MqttChannelStateDescriptionProvider.java +++ b/bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/MqttChannelStateDescriptionProvider.java @@ -68,7 +68,9 @@ public class MqttChannelStateDescriptionProvider implements DynamicStateDescript public @Nullable StateDescription getStateDescription(Channel channel, @Nullable StateDescription originalStateDescription, @Nullable Locale locale) { StateDescription description = descriptions.get(channel.getUID()); - logger.trace("Providing state description for channel {}", channel.getUID()); + if (description != null) { + logger.trace("Providing state description for channel {}", channel.getUID()); + } return description; }