[KEYCLOAK-7763] - NPE when enabling authorization to security-admin-console

This commit is contained in:
Pedro Igor 2018-07-03 12:06:25 -03:00
parent d55ccf5312
commit dafd567e68

View file

@ -177,7 +177,7 @@ public class AdminConsole {
if (consoleApp == null) { if (consoleApp == null) {
throw new NotFoundException("Could not find admin console client"); throw new NotFoundException("Could not find admin console client");
} }
return new ClientManager().toInstallationRepresentation(realm, consoleApp, keycloak.getBaseUri(uriInfo)); return new ClientManager(new RealmManager(session)).toInstallationRepresentation(realm, consoleApp, keycloak.getBaseUri(uriInfo));
} }