diff --git a/transport/src/main/java/io/netty/channel/ChannelHandlerMask.java b/transport/src/main/java/io/netty/channel/ChannelHandlerMask.java index ef38443328..526006a84e 100644 --- a/transport/src/main/java/io/netty/channel/ChannelHandlerMask.java +++ b/transport/src/main/java/io/netty/channel/ChannelHandlerMask.java @@ -175,7 +175,7 @@ final class ChannelHandlerMask { "Class {} missing method {}, assume we can not skip execution", handlerType, methodName, e); return false; } - return m.isAnnotationPresent(Skip.class); + return m != null && m.isAnnotationPresent(Skip.class); } }); }