about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/message.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c
index 0f5e644d..98ab40c8 100644
--- a/src/xmpp/message.c
+++ b/src/xmpp/message.c
@@ -1179,6 +1179,9 @@ _handle_chat(xmpp_stanza_t *const stanza)
     }
 
     const gchar *from = xmpp_stanza_get_from(stanza);
+    if (!from) {
+        return;
+    }
     Jid *jid = jid_create(from);
 
     // private message from chat room use full jid (room/nick)