[#1411] Correctly check for null in AbstractTrafficShapperHandler.read() and so prevent NPE
This commit is contained in:
parent
e71a521284
commit
07858a3bd4
@ -266,7 +266,8 @@ public abstract class AbstractTrafficShapingHandler extends ChannelDuplexHandler
|
||||
|
||||
@Override
|
||||
public void read(ChannelHandlerContext ctx) {
|
||||
if (!ctx.attr(READ_SUSPENDED).get()) {
|
||||
Boolean suspended = ctx.attr(READ_SUSPENDED).get();
|
||||
if (suspended == null || Boolean.FALSE.equals(suspended)) {
|
||||
ctx.read();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user