From df217fb1171e848d28857d946edbaaa8d1d6e613 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 23 Oct 2019 16:43:08 +0200 Subject: Fix segfault in groupchat name generation fixes #635 --- main/src/ui/util/helper.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/ui/util/helper.vala b/main/src/ui/util/helper.vala index 16f2d66b..5c72743f 100644 --- a/main/src/ui/util/helper.vala +++ b/main/src/ui/util/helper.vala @@ -168,7 +168,7 @@ private static string get_groupchat_display_name(StreamInteractor stream_interac if (builder.len != 0) { builder.append(", "); } - builder.append((get_real_display_name(stream_interactor, account, occupant) ?? occupant.localpart).split(" ")[0]); + builder.append((get_real_display_name(stream_interactor, account, occupant) ?? occupant.localpart ?? occupant.domainpart).split(" ")[0]); } return builder.str; } -- cgit v1.2.3-70-g09d2