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

remm 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 a825b4363f Avoid possible NPEs when using a TLS enabled custom 
connector
a825b4363f is described below

commit a825b4363f37594b4d2d371418ba0d045d92097a
Author: remm <[email protected]>
AuthorDate: Wed Dec 3 21:22:54 2025 +0100

    Avoid possible NPEs when using a TLS enabled custom connector
---
 java/org/apache/tomcat/util/net/AbstractJsseEndpoint.java | 9 +++++++++
 webapps/docs/changelog.xml                                | 7 +++++++
 2 files changed, 16 insertions(+)

diff --git a/java/org/apache/tomcat/util/net/AbstractJsseEndpoint.java 
b/java/org/apache/tomcat/util/net/AbstractJsseEndpoint.java
index 018c368c95..1ecc058ce1 100644
--- a/java/org/apache/tomcat/util/net/AbstractJsseEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractJsseEndpoint.java
@@ -127,8 +127,17 @@ public abstract class AbstractJsseEndpoint<S, U> extends 
AbstractEndpoint<S,U> {
     protected SSLEngine createSSLEngine(String sniHostName, List<Cipher> 
clientRequestedCiphers,
             List<String> clientRequestedApplicationProtocols) {
         List<String> clientRequestedProtocols = 
clientRequestedProtocolsThreadLocal.get();
+        if (clientRequestedProtocols == null) {
+            clientRequestedProtocols = new ArrayList<String>();
+        }
         List<Group> clientSupportedGroups = 
clientSupportedGroupsThreadLocal.get();
+        if (clientSupportedGroups == null) {
+            clientSupportedGroups = new ArrayList<Group>();
+        }
         List<SignatureScheme> clientSignatureSchemes = 
clientSignatureSchemesThreadLocal.get();
+        if (clientSignatureSchemes == null) {
+            clientSignatureSchemes = new ArrayList<SignatureScheme>();
+        }
 
         SSLHostConfig sslHostConfig = getSSLHostConfig(sniHostName);
 
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 7a197d74f7..10798b37d2 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -105,6 +105,13 @@
   issues do not "pop up" wrt. others).
 -->
 <section name="Tomcat 10.1.50 (schultz)" rtext="in development">
+  <subsection name="Coyote">
+    <changelog>
+      <fix>
+        Avoid possible NPEs when using a TLS enabled custom connector. (remm)
+      </fix>
+    </changelog>
+  </subsection>
 </section>
 <section name="Tomcat 10.1.50 (schultz)" rtext="Release in progress">
   <subsection name="General">


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to