KEYCLOAK-3602 - NPE into SAML DeploymentBuilder build

This commit is contained in:
gautric 2016-09-20 18:39:49 +02:00
parent cd3cd4f506
commit affc62460c

View file

@ -97,7 +97,7 @@ public class DeploymentBuilder {
log.debugf("Try to load key [%s]", key.getKeystore().getCertificateAlias());
cert = keyStore.getCertificate(key.getKeystore().getCertificateAlias());
if(cert == null) {
log.errorf("key alias %s is not found into keystore", key.getKeystore().getCertificateAlias());
log.errorf("Key alias %s is not found into keystore", key.getKeystore().getCertificateAlias());
}
privateKey = (PrivateKey) keyStore.getKey(key.getKeystore().getPrivateKeyAlias(), key.getKeystore().getPrivateKeyPassword().toCharArray());
publicKey = cert.getPublicKey();