wangchengming666 commented on a change in pull request #9122:
URL: https://github.com/apache/dubbo/pull/9122#discussion_r736194805



##########
File path: 
dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/TripleHttp2FrameServerHandler.java
##########
@@ -83,8 +83,10 @@ public void userEventTriggered(ChannelHandlerContext ctx, 
Object evt) throws Exc
     public void onResetRead(ChannelHandlerContext ctx, Http2ResetFrame frame) {
         final AbstractServerStream serverStream = 
ctx.channel().attr(TripleConstant.SERVER_STREAM_KEY).get();
         LOGGER.warn("Triple Server received remote reset errorCode=" + 
frame.errorCode());
-        serverStream.cancelByRemote();
-        ctx.close();
+        if (serverStream != null) {
+            serverStream.cancelByRemote();
+            ctx.close();

Review comment:
       @guohao done, thanks.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to