From dba63b14737d9415bb189235065efb80676e2b17 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 29 Oct 2020 19:11:55 +0100 Subject: Fix runtime critical when room has no name --- xmpp-vala/src/module/xep/0045_muc/module.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmpp-vala/src/module/xep/0045_muc') diff --git a/xmpp-vala/src/module/xep/0045_muc/module.vala b/xmpp-vala/src/module/xep/0045_muc/module.vala index e9da6657..aef3796b 100644 --- a/xmpp-vala/src/module/xep/0045_muc/module.vala +++ b/xmpp-vala/src/module/xep/0045_muc/module.vala @@ -407,7 +407,7 @@ public class Module : XmppStreamModule { Gee.List features = new ArrayList(); foreach (ServiceDiscovery.Identity identity in info_result.identities) { - if (identity.category == "conference") { + if (identity.category == "conference" && identity.name != null) { stream.get_flag(Flag.IDENTITY).set_room_name(jid, identity.name); } } -- cgit v1.2.3-70-g09d2