diff --git a/gajim/common/modules/caps.py b/gajim/common/modules/caps.py
index 51834c47c42433fba3f3d0ba6eddc0ea74c199e1..f868d6b09b662bc507041b0c45fb2ca3bac044a3 100644
--- a/gajim/common/modules/caps.py
+++ b/gajim/common/modules/caps.py
@@ -59,6 +59,9 @@ def _entity_caps(self, _con, _stanza, properties):
         if properties.is_self_presence:
             return
 
+        if properties.entity_caps is None:
+            return
+
         jid = str(properties.jid)
 
         hash_method = properties.entity_caps.hash