commit | 5f9d6969d569adcc9d2b74df09dd4a030bf2c714 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@onlab.us> | Fri Nov 07 13:06:45 2014 -0800 |
committer | Yuta HIGUCHI <y-higuchi@onlab.us> | Fri Nov 07 17:07:32 2014 -0800 |
tree | 604aa0cf4708f3afa2ae233f8d02f816e68888dd | |
parent | 10ac63b61efa3ad3c2e64af02523a8d94d2a3307 [diff] |
NettyMessagingService: add null check Change-Id: Ic4897e69253526d3c3cd2c0a0fe00df1bdc7d787
diff --git a/utils/netty/src/main/java/org/onlab/netty/NettyMessagingService.java b/utils/netty/src/main/java/org/onlab/netty/NettyMessagingService.java index 54b02de..5b7266e 100644 --- a/utils/netty/src/main/java/org/onlab/netty/NettyMessagingService.java +++ b/utils/netty/src/main/java/org/onlab/netty/NettyMessagingService.java
@@ -315,7 +315,11 @@ return; } MessageHandler handler = NettyMessagingService.this.getMessageHandler(type); - handler.handle(message); + if (handler != null) { + handler.handle(message); + } else { + log.debug("No handler registered for {}", type); + } } @Override