You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Andreas Gorges (Jira)" <ji...@apache.org> on 2022/03/23 14:13:00 UTC
[jira] [Created] (AMQ-8550) ActiveMQSslConnectionFactory: Allow for SSL Truststore w/o password (Nullpointer Exception) Fix inside
Andreas Gorges created AMQ-8550:
-----------------------------------
Summary: 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
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)