This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new a7c6017800 Add null check
a7c6017800 is described below
commit a7c601780079f18d6ea77ca90c65724d49047019
Author: remm <[email protected]>
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 8a6e896a2b..53a2fbddf3 100644
--- a/java/org/apache/coyote/http2/Http2UpgradeHandler.java
+++ b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
@@ -291,7 +291,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: [email protected]
For additional commands, e-mail: [email protected]