mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
some small dbus return code fixes (#556)
* some small dbus return code fixes * Added DBus manpage * changed getDisplayName behaviour * reverted change in manager
This commit is contained in:
parent
2ea56a1b67
commit
a7b414a870
4 changed files with 5 additions and 3 deletions
|
@ -2367,7 +2367,6 @@ public class Manager implements Closeable {
|
|||
if (profileEntry != null && profileEntry.getProfile() != null) {
|
||||
return profileEntry.getProfile().getDisplayName();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue