From c7d4dc8beeb7032d8b00122214eba0e12667f528 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 4 Jun 2009 18:06:50 +0200 Subject: [PATCH] prevent a traceback when we get a groupchat presence from unknown participant. see #5067 --- src/groupchat_control.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 79d3a746e..dde8a1d44 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -1252,6 +1252,9 @@ class GroupchatControl(ChatControlBase): else: gc_c = gajim.contacts.get_gc_contact(self.account, self.room_jid, nick) + if not gc_c: + log.error('%s has an iter, but no gc_contact instance') + return # Re-get vcard if avatar has changed # We do that here because we may request it to the real JID if we # knows it. connections.py doesn't know it.