KEYCLOAK-2539
Migration fails if DisplayNameHtml is null for master realm
This commit is contained in:
parent
c45e40db99
commit
ab96114ef8
1 changed files with 1 additions and 1 deletions
|
@ -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>");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue