mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[amazonrchocontrol] Fix NPE (#8891)
* Fix obviously wrong boolean condition Signed-off-by: Christian Schlipp <christian@schlipp.de>
This commit is contained in:
parent
9a90632be3
commit
b26489ceb7
@ -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
Block a user