KEYCLOAK-17257 Fix NPEs when user storage doesn't implement the CredentialInputValidator interface
This commit is contained in:
parent
23bfaef4bb
commit
b122f31d2c
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ public class UserCredentialStoreManager extends AbstractStorageManager<UserStora
|
|||
if (model == null || !model.isEnabled()) return UserStorageCredentialConfigured.USER_STORAGE_DISABLED;
|
||||
|
||||
CredentialInputValidator validator = getStorageProviderInstance(model, CredentialInputValidator.class);
|
||||
if (validator.supportsCredentialType(type) && validator.isConfiguredFor(realm, user, type)) {
|
||||
if (validator != null && validator.supportsCredentialType(type) && validator.isConfiguredFor(realm, user, type)) {
|
||||
return UserStorageCredentialConfigured.CONFIGURED;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue