This is an automated email from the ASF dual-hosted git repository. markt-asf pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 187b50eb077cc62e834d26d4effb762cf75c017c 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 1acc2ca272..3bb1fb726d 100644 --- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java +++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java @@ -502,7 +502,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]
