diff --git a/src/common/connection_handlers_events.py b/src/common/connection_handlers_events.py index bf0855cf9..386104ea2 100644 --- a/src/common/connection_handlers_events.py +++ b/src/common/connection_handlers_events.py @@ -1243,6 +1243,8 @@ class MessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent): feature = self.stanza.getTag(name='feature', namespace=nbxmpp.NS_FEATURE) form = nbxmpp.DataForm(node=feature.getTag('x')) + if not form: + return if form['FORM_TYPE'] == 'urn:xmpp:ssn': self.session.handle_negotiation(form)