SEC-2418: Minor fix to toString method in LdapUserDetailsImpl

This commit is contained in:
Mat Booth 2013-11-27 21:15:10 +00:00 committed by Rob Winch
parent 0b996c669f
commit c6a534cad8
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ public class LdapUserDetailsImpl implements LdapUserDetails, PasswordPolicyData
sb.append("CredentialsNonExpired: ").append(this.credentialsNonExpired).append("; ");
sb.append("AccountNonLocked: ").append(this.accountNonLocked).append("; ");
if (this.getAuthorities() != null) {
if (this.getAuthorities() != null && !this.getAuthorities().isEmpty()) {
sb.append("Granted Authorities: ");
boolean first = true;