Skip to content

Commit

Permalink
added return statement if channel is not found (#)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wire82 committed May 9, 2017
1 parent b6b8053 commit 3ed6620
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public void handleCommand(ChannelUID channelUID, Command command) {
Channel channel = this.thing.getChannel(channelUID.getId());
if (channel == null) {
logger.error("Channel {} not found", channelUID.toString());
return;
}
if (channel.getChannelTypeUID().toString().equals("heos:ch_player")) {
if (command.toString().equals("ON")) {
Expand Down

0 comments on commit 3ed6620

Please sign in to comment.