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,7 +100,9 @@ public class HexDumpProxyInboundHandler extends SimpleChannelUpstreamHandler {
// the incoming traffic from the outboundChannel.
synchronized (trafficLock) {
if (e.getChannel().isWritable()) {
outboundChannel.setReadable(true);
if (outboundChannel != null) {
outboundChannel.setReadable(true);
}
}
}
}