Fix possible NPE. See #274

This commit is contained in:
Norman Maurer 2012-04-21 16:13:27 +02:00
parent c134a522c3
commit 0b26a5a2f0

View File

@ -99,7 +99,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);
}
}
}
}