Check IdP display name length before capitalizing (#13151)
https://github.com/keycloak/keycloak/issues/13150 Co-authored-by: Stian Thorgersen <stianst@gmail.com>
This commit is contained in:
parent
6bb9d71c1c
commit
c6c65ad10b
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ public class FreeMarkerEmailTemplateProvider implements EmailTemplateProvider {
|
|||
String idpDisplayName = brokerContext.getIdpConfig().getDisplayName();
|
||||
idpAlias = ObjectUtil.capitalize(idpAlias);
|
||||
|
||||
if (idpDisplayName != null) {
|
||||
if (idpDisplayName != null && idpDisplayName.length() > 0) {
|
||||
idpAlias = ObjectUtil.capitalize(idpDisplayName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue