[amazonechocontrol] fix NPE (#8888)

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
J-N-K 2020-10-28 16:04:17 +01:00 committed by GitHub
parent cb1f933e96
commit 6725c58525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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) {