[amazonrchocontrol] Fix NPE (#8891)

* Fix obviously wrong boolean condition

Signed-off-by: Christian Schlipp <christian@schlipp.de>
This commit is contained in:
CSchlipp 2020-10-28 18:53:17 +01:00 committed by GitHub
parent 9a90632be3
commit b26489ceb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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