Merge pull request #2269 from stianst/KEYCLOAK-2539

KEYCLOAK-2539
This commit is contained in:
Stian Thorgersen 2016-02-24 16:15:50 +01:00
commit 8c73f8743d

View file

@ -39,7 +39,7 @@ public class MigrateTo1_9_0 {
public void migrate(KeycloakSession session) {
RealmModel realm = session.realms().getRealmByName(Config.getAdminRealm());
if (realm != null && realm.getDisplayNameHtml().equals("<strong>Keycloak</strong>")) {
if (realm != null && realm.getDisplayNameHtml() != null && realm.getDisplayNameHtml().equals("<strong>Keycloak</strong>")) {
realm.setDisplayNameHtml("<div class=\"kc-logo-text\"><span>Keycloak</span></div>");
}
}