This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 1160cc3885 Fix NPE if an attempt is made to remove an unknown host
1160cc3885 is described below
commit 1160cc3885c4be026520dc5457c9f406b00fb277
Author: Mark Thomas <[email protected]>
AuthorDate: Sat May 16 07:34:42 2026 +0100
Fix NPE if an attempt is made to remove an unknown host
---
java/org/apache/tomcat/util/net/AbstractEndpoint.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index 8c8e36de63..af6ba320ea 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -430,7 +430,7 @@ public abstract class AbstractEndpoint<S, U> {
throw new
IllegalArgumentException(sm.getString("endpoint.removeDefaultSslHostConfig",
hostName));
}
SSLHostConfig sslHostConfig = sslHostConfigs.remove(hostNameLower);
- if (sslHostConfig == null) {
+ if (sslHostConfig != null) {
unregisterJmx(sslHostConfig);
}
return sslHostConfig;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]