Skip to content

Commit

Permalink
MGR-89
Browse files Browse the repository at this point in the history
  • Loading branch information
madness-inc committed Apr 3, 2020
1 parent 4d3fa44 commit afb331c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -169,7 +169,7 @@ public String getDisplayValue() {
@Override
public String getActualString() {
String stringValue = getString();
if (hidePassword && Property.Type.PASSWORD.equals(getType())) {
if (StringUtils.isNotBlank(stringValue) && hidePassword && Property.Type.PASSWORD.equals(getType())) {
return stringValue.substring(0, 2) + StringUtils.repeat('*', stringValue.length() - 4)
+ stringValue.substring(stringValue.length() - 2);
}
Expand Down

0 comments on commit afb331c

Please sign in to comment.