Skip to content

Commit

Permalink
[grid] prevent NPE in handling request with unsupported http method
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg1985 committed Nov 3, 2024
1 parent 0219666 commit f56b3d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected void channelRead0(ChannelHandlerContext ctx, HttpObject msg) throws Ex
length = -1;
}

if (msg instanceof HttpContent) {
if (request != null && msg instanceof HttpContent) {
ByteBuf buf = ((HttpContent) msg).content().retain();
int nBytes = buf.readableBytes();

Expand Down

0 comments on commit f56b3d0

Please sign in to comment.