This is an automated email from the ASF dual-hosted git repository.

markt 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 fa0ab71a61 Remove unnecessary null check
fa0ab71a61 is described below

commit fa0ab71a61c3ed6ed36ff2fae495cc95f5f2b1b5
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Nov 15 12:15:19 2024 +0000

    Remove unnecessary null check
---
 java/org/apache/catalina/storeconfig/SSLHostConfigSF.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/storeconfig/SSLHostConfigSF.java 
b/java/org/apache/catalina/storeconfig/SSLHostConfigSF.java
index 4fa6f06722..e26079c913 100644
--- a/java/org/apache/catalina/storeconfig/SSLHostConfigSF.java
+++ b/java/org/apache/catalina/storeconfig/SSLHostConfigSF.java
@@ -43,7 +43,7 @@ public class SSLHostConfigSF extends StoreFactoryBase {
             getStoreAppender().printIndent(aWriter, indent + 2);
             aWriter.print("<");
             aWriter.print(elementDesc.getTag());
-            if (elementDesc.isAttributes() && aElement != null) {
+            if (elementDesc.isAttributes()) {
                 // Add protocols attribute
                 SSLHostConfig bean2 = (SSLHostConfig) 
getStoreAppender().defaultInstance(aElement);
                 SSLHostConfig sslHostConfig = (SSLHostConfig) aElement;


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to