Skip to content

Commit

Permalink
Merge pull request openhab#7 from jarlebh/patch-1
Browse files Browse the repository at this point in the history
Handle channel not found
  • Loading branch information
Wire82 authored Mar 8, 2017
2 parents a6b966b + d1c1278 commit 92fd354
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ public void handleCommand(ChannelUID channelUID, Command command) {
}

Channel channel = this.thing.getChannel(channelUID.getId());

if (channel == null) {
logger.error("Channel {} not found", channelUID.toString());
}
if (channel.getChannelTypeUID().toString().equals("heos:ch_player")) {
if (command.toString().equals("ON")) {
selectedPlayer.put(channel.getProperties().get(PID), channelUID.getId());
Expand Down

0 comments on commit 92fd354

Please sign in to comment.