Fix possible NPE. See #274
This commit is contained in:
parent
5f6b419bb9
commit
980d96cf58
@ -100,7 +100,9 @@ public class HexDumpProxyInboundHandler extends SimpleChannelUpstreamHandler {
|
|||||||
// the incoming traffic from the outboundChannel.
|
// the incoming traffic from the outboundChannel.
|
||||||
synchronized (trafficLock) {
|
synchronized (trafficLock) {
|
||||||
if (e.getChannel().isWritable()) {
|
if (e.getChannel().isWritable()) {
|
||||||
outboundChannel.setReadable(true);
|
if (outboundChannel != null) {
|
||||||
|
outboundChannel.setReadable(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user