[amazonechocontrol] fix NPE (#8888)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
parent
cb1f933e96
commit
6725c58525
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue