This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new d27fe93747 Add null check
d27fe93747 is described below

commit d27fe93747e2cdebffd4aa7252c5957c8a8e4822
Author: remm <r...@apache.org>
AuthorDate: Fri Sep 6 13:19:44 2024 +0200

    Add null check
    
    Found by Coverity.
---
 java/org/apache/coyote/http2/Http2UpgradeHandler.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/coyote/http2/Http2UpgradeHandler.java 
b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
index 7904031722..d44982fc82 100644
--- a/java/org/apache/coyote/http2/Http2UpgradeHandler.java
+++ b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
@@ -292,7 +292,9 @@ class Http2UpgradeHandler extends AbstractStream implements 
InternalHttpUpgradeH
 
 
     protected void decrementActiveRemoteStreamCount(Stream stream) {
-        
setConnectionTimeoutForStreamCount(stream.decrementAndGetActiveRemoteStreamCount());
+        if (stream != null) {
+            
setConnectionTimeoutForStreamCount(stream.decrementAndGetActiveRemoteStreamCount());
+        }
     }
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to