From 10516a62aca883a1aa9c6d909e4e52f999fe59ba Mon Sep 17 00:00:00 2001 From: vrockai Date: Fri, 15 Nov 2013 08:10:43 +0100 Subject: [PATCH] KEYCLOAK-151 fix for account app lookup --- .../main/java/org/keycloak/services/managers/RealmManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/main/java/org/keycloak/services/managers/RealmManager.java b/services/src/main/java/org/keycloak/services/managers/RealmManager.java index 8cd43a0046..10832ad8ad 100755 --- a/services/src/main/java/org/keycloak/services/managers/RealmManager.java +++ b/services/src/main/java/org/keycloak/services/managers/RealmManager.java @@ -129,7 +129,7 @@ public class RealmManager { } private void enableAccountManagement(RealmModel realm) { - ApplicationModel application = realm.getApplicationById(Constants.ACCOUNT_APPLICATION); + ApplicationModel application = realm.getApplicationNameMap().get(Constants.ACCOUNT_APPLICATION); if (application == null) { application = realm.addApplication(Constants.ACCOUNT_APPLICATION); application.addDefaultRole(Constants.ACCOUNT_PROFILE_ROLE);