aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/xep/0045_muc
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-05-28 00:27:06 +0200
committerfiaxh <git@lightrise.org>2020-06-03 21:50:40 +0200
commitd01af5b520d112b00e4c18b16657f89d5afe7ad4 (patch)
treec32a343766e72f95d2d67b456b41b66872e8cdfe /xmpp-vala/src/module/xep/0045_muc
parent71be2abb6a007fd9b4ed3164d70f5cb95d49ce69 (diff)
downloaddino-d01af5b520d112b00e4c18b16657f89d5afe7ad4.tar.gz
dino-d01af5b520d112b00e4c18b16657f89d5afe7ad4.zip
Fix compiler warnings
Diffstat (limited to 'xmpp-vala/src/module/xep/0045_muc')
-rw-r--r--xmpp-vala/src/module/xep/0045_muc/module.vala6
1 files changed, 5 insertions, 1 deletions
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<MessageStanza> {
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);