(cherry picked from commit 0f19def2183d260238d998b4c35e648e65e3ce11)
This commit is contained in:
Stephen Paul Weber 2024-12-16 14:02:25 -05:00 committed by Arne
parent bec1acfd6d
commit 00b8958381

View file

@ -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() {