diff --git a/plugins/triggers/manifest.ini b/plugins/triggers/manifest.ini
index a31225bb5e8b482a1b2ddf2e26218357bb1be52d..173bd102d0840f521de5368a21f104514bb03c14 100644
--- a/plugins/triggers/manifest.ini
+++ b/plugins/triggers/manifest.ini
@@ -1,7 +1,7 @@
 [info]
 name: Triggers
 short_name: triggers
-version: 0.0.2
+version: 0.0.3
 description: Configure Gajim's behaviour for each contact
 authors: Yann Leboulanger <asterix@lagaule.org>
 homepage: http://trac.gajim.org/wiki/
diff --git a/plugins/triggers/triggers.py b/plugins/triggers/triggers.py
index 813ae6ea5430a1df789e743fd7cbb994b0db7142..1cfdd9769d4651cfd9d3c0b01c38e32f1a0eb49a 100644
--- a/plugins/triggers/triggers.py
+++ b/plugins/triggers/triggers.py
@@ -48,8 +48,10 @@ class Triggers(GajimPlugin):
         if rule['recipient_type'] == 'contact' and obj.jid not in \
         rule_recipients:
             return False
-        contact_groups = gajim.contacts.get_first_contact_from_jid(
-            obj.conn.name, obj.jid).groups
+        contact = gajim.contacts.get_first_contact_from_jid(obj.conn.name, obj.jid)
+        if not contact:  # PM?
+            return False
+        contact_groups = contact.groups
         group_found = False
         for group in contact_groups:
             if group in rule_recipients: