You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2024/09/06 11:20:09 UTC
(tomcat) branch main updated: Add null check
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 32507a41a7 Add null check
32507a41a7 is described below
commit 32507a41a793a9d891595717f986a17f794676db
Author: remm <re...@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 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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org