Fix possible NPE. See #274

This commit is contained in:
Norman Maurer 2012-04-21 16:12:08 +02:00
parent 5f6b419bb9
commit 980d96cf58

View File

@ -100,10 +100,12 @@ public class HexDumpProxyInboundHandler extends SimpleChannelUpstreamHandler {
// the incoming traffic from the outboundChannel.
synchronized (trafficLock) {
if (e.getChannel().isWritable()) {
if (outboundChannel != null) {
outboundChannel.setReadable(true);
}
}
}
}
@Override
public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e)