[
https://issues.apache.org/jira/browse/FLINK-4849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eron Wright resolved FLINK-4849.
---------------------------------
Resolution: Invalid
> trustStorePassword should be checked against null in
> SSLUtils#createSSLClientContext
> ------------------------------------------------------------------------------------
>
> Key: FLINK-4849
> URL: https://issues.apache.org/jira/browse/FLINK-4849
> Project: Flink
> Issue Type: Bug
> Components: Security
> Reporter: Ted Yu
> Priority: Minor
>
> {code}
> String trustStorePassword = sslConfig.getString(
> ConfigConstants.SECURITY_SSL_TRUSTSTORE_PASSWORD,
> null);
> ...
> try {
> trustStoreFile = new FileInputStream(new File(trustStoreFilePath));
> trustStore.load(trustStoreFile, trustStorePassword.toCharArray());
> {code}
> If trustStorePassword is null, the load() call would throw NPE.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)