Skip to content

Commit

Permalink
Merge pull request #48 from DaspawnW/bugfix/np-exception
Browse files Browse the repository at this point in the history
fix possible nullpointer exception in jksconfiguration
  • Loading branch information
DaspawnW authored Jun 24, 2020
2 parents 3bcd574 + d1b8080 commit 7453c13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ VaultSecret mapJks(VaultResponseData data, VaultJKSConfiguration jksConfiguratio
getPassword(jksConfiguration).toCharArray(),
publicKeyList);

if (!StringUtils.isEmpty(jksConfiguration.getCaAlias())) {
if (jksConfiguration != null && !StringUtils.isEmpty(jksConfiguration.getCaAlias())) {
keyStore.setCertificateEntry(
jksConfiguration.getCaAlias(),
getPublicKey(data.getIssuing_ca())[0]
Expand Down

0 comments on commit 7453c13

Please sign in to comment.