KEYCLOAK-18334 Fix null pointer exception when viewing flow executions (#8121)
* KEYCLOAK-18334 Fix null pointer exception when viewing flow executions Closes #10371
This commit is contained in:
parent
7fdd18ac86
commit
b26a1a4803
1 changed files with 4 additions and 0 deletions
|
@ -566,6 +566,10 @@ public class AuthenticationManagementResource {
|
|||
} else {
|
||||
String providerId = execution.getAuthenticator();
|
||||
ConfigurableAuthenticatorFactory factory = CredentialHelper.getConfigurableAuthenticatorFactory(session, providerId);
|
||||
if (factory == null) {
|
||||
logger.warnf("Cannot find authentication provider implementation with provider ID '%s'", providerId);
|
||||
throw new NotFoundException("Could not find authenticator provider");
|
||||
}
|
||||
rep.setDisplayName(factory.getDisplayType());
|
||||
rep.setConfigurable(factory.isConfigurable());
|
||||
for (AuthenticationExecutionModel.Requirement choice : factory.getRequirementChoices()) {
|
||||
|
|
Loading…
Reference in a new issue