Fix possible NPE. See #274
This commit is contained in:
parent
5f6b419bb9
commit
980d96cf58
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user