reverted change in manager

This commit is contained in:
Adimarantis 2021-03-07 19:37:23 +01:00
parent 5f54844eee
commit ac195ad61c
2 changed files with 2 additions and 3 deletions

View file

@ -2365,8 +2365,7 @@ public class Manager implements Closeable {
final var profileEntry = account.getProfileStore().getProfileEntry(address);
if (profileEntry != null && profileEntry.getProfile() != null) {
String name = profileEntry.getProfile().getDisplayName();
return name==null?"":name;
return profileEntry.getProfile().getDisplayName();
}
return null;
}

View file

@ -77,7 +77,7 @@ public class SignalProfile {
public String getDisplayName() {
// First name and last name (if set) are separated by a NULL char + trim space in case only one is filled
return name == null ? null : name.replace("\0", " ").trim();
return name == null ? "" : name.replace("\0", " ").trim();
}
public String getAbout() {