Fix NPE
(cherry picked from commit 0f19def2183d260238d998b4c35e648e65e3ce11)
This commit is contained in:
parent
bec1acfd6d
commit
00b8958381
1 changed files with 2 additions and 2 deletions
|
@ -568,8 +568,8 @@ public class Contact implements ListItem, Blockable {
|
|||
return getJid().compareTo(another.getJid());
|
||||
}
|
||||
|
||||
return this.getDisplayName().compareToIgnoreCase(
|
||||
another.getDisplayName());
|
||||
final var anotherName = another.getDisplayName();
|
||||
return this.getDisplayName().compareToIgnoreCase(anotherName == null ? "" : anotherName);
|
||||
}
|
||||
|
||||
public String getServer() {
|
||||
|
|
Loading…
Reference in a new issue