Skip to content

Commit

Permalink
npe like #790
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunterk95 committed May 16, 2023
1 parent e90e292 commit 42ceb88
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
} else {
ClientHead client = ctx.channel().attr(ClientHead.CLIENT).get();
// first connection
handshake(ctx, client.getSessionId(), path, req);
if (client != null) {
handshake(ctx, client.getSessionId(), path, req);
}
}
} finally {
req.release();
Expand Down

0 comments on commit 42ceb88

Please sign in to comment.