Skip to content
Browse files

Fix possible NPE. See #274

  • Loading branch information...
1 parent 5f6b419 commit 980d96cf581493124028bb60cc4dc213c3f2737e @normanmaurer normanmaurer committed Apr 21, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 example/src/main/java/io/netty/example/proxy/HexDumpProxyInboundHandler.java
View
4 example/src/main/java/io/netty/example/proxy/HexDumpProxyInboundHandler.java
@@ -100,7 +100,9 @@ public void channelInterestChanged(ChannelHandlerContext ctx,
// the incoming traffic from the outboundChannel.
synchronized (trafficLock) {
if (e.getChannel().isWritable()) {
- outboundChannel.setReadable(true);
+ if (outboundChannel != null) {
+ outboundChannel.setReadable(true);
+ }
}
}
}

0 comments on commit 980d96c

Please sign in to comment.
Something went wrong with that request. Please try again.