[ https://issues.apache.org/jira/browse/AMQ-8550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17517540#comment-17517540 ]
Christopher L. Shannon commented on AMQ-8550: --------------------------------------------- Pull requested created, I also added support for checking for null for keystore password as well and not just truststore password. > ActiveMQSslConnectionFactory: Allow for SSL Truststore w/o password > (Nullpointer Exception) Fix inside > ------------------------------------------------------------------------------------------------------ > > Key: AMQ-8550 > URL: https://issues.apache.org/jira/browse/AMQ-8550 > Project: ActiveMQ > Issue Type: Bug > Components: JMS client > Reporter: Andreas Gorges > Assignee: Christopher L. Shannon > Priority: Major > Fix For: 5.17.1 > > Time Spent: 10m > Remaining Estimate: 0h > > When you assign a Truststore without a password the method > {color:#000000}ActiveMQSslConnectionFactory.{color}{color:#00627a}createTrustManager > throws a NullPointer exception in Line 135: > {color} > > {code:java} > trustedCertStore.load(tsStream, trustStorePassword.toCharArray()); {code} > > {color:#00627a}Please change the code to:{color} > {code:java} > char[] password = null; > if (trustStorePassword != null) { > password = trustStorePassword.toCharArray(); > } > trustedCertStore.load(tsStream, password); > {code} > -- This message was sent by Atlassian Jira (v8.20.1#820001)