fix traceback when receiving self presences. Fixes #6099

This commit is contained in:
Yann Leboulanger 2010-12-09 17:30:42 +01:00
parent c86f98a19c
commit 42ac96b707
1 changed files with 2 additions and 1 deletions

View File

@ -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