Fix possible NPE. See #274
This commit is contained in:
parent
c134a522c3
commit
0b26a5a2f0
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user