diff --git a/src/main/java/de/koudingspawn/vault/vault/impl/SharedVaultResponseMapper.java b/src/main/java/de/koudingspawn/vault/vault/impl/SharedVaultResponseMapper.java index ac59555..c87659c 100644 --- a/src/main/java/de/koudingspawn/vault/vault/impl/SharedVaultResponseMapper.java +++ b/src/main/java/de/koudingspawn/vault/vault/impl/SharedVaultResponseMapper.java @@ -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]