From d01af5b520d112b00e4c18b16657f89d5afe7ad4 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 28 May 2020 00:27:06 +0200 Subject: Fix compiler warnings --- xmpp-vala/src/module/xep/0045_muc/module.vala | 6 +++++- 1 file changed, 5 insertions(+), 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 9734fdbc..e9da6657 100644 --- a/xmpp-vala/src/module/xep/0045_muc/module.vala +++ b/xmpp-vala/src/module/xep/0045_muc/module.vala @@ -567,7 +567,11 @@ public class ReceivedPipelineListener : StanzaListener { string? var_ = field_node.get_attribute("var"); if (var_ == "muc#jid"){ StanzaNode? value_node = field_node.get_subnode("value", DataForms.NS_URI); - if (value_node != null) from_jid = new Jid(value_node.get_string_content()); + try { + if (value_node != null) from_jid = new Jid(value_node.get_string_content()); + } catch (InvalidJidError e) { + return false; + } } else if (var_ == "muc#roomnick"){ StanzaNode? value_node = field_node.get_subnode("value", DataForms.NS_URI); -- cgit v1.2.3-70-g09d2