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 <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 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org