Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
17ea3fca0b
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ public class MigrateTo1_9_0 {
|
||||||
|
|
||||||
public void migrate(KeycloakSession session) {
|
public void migrate(KeycloakSession session) {
|
||||||
RealmModel realm = session.realms().getRealmByName(Config.getAdminRealm());
|
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>");
|
realm.setDisplayNameHtml("<div class=\"kc-logo-text\"><span>Keycloak</span></div>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue