From 42ac96b707ba8ecf71693ee60395c7bd942e3d71 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 9 Dec 2010 17:30:42 +0100 Subject: [PATCH] fix traceback when receiving self presences. Fixes #6099 --- src/roster_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index 5d59d6486..06067714c 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2448,7 +2448,8 @@ class RosterWindow: for jid_ in gajim.transport_avatar[account][jid]: obj.conn.request_vcard(jid_) - self.chg_contact_status(obj.contact, obj.show, obj.status, account) + if obj.contact: + self.chg_contact_status(obj.contact, obj.show, obj.status, account) def _nec_gc_presence_received(self, obj): account = obj.conn.name