prevent a traceback when trying to redraw a contact that is no more in our roster. Fixes #5876

This commit is contained in:
Yann Leboulanger 2010-09-08 09:03:43 +02:00
parent c38a48f934
commit 402881aac2
1 changed files with 3 additions and 1 deletions

View File

@ -1112,7 +1112,9 @@ class RosterWindow:
contact_instances = gajim.contacts.get_contacts(account, jid)
contact = gajim.contacts.get_highest_prio_contact_from_contacts(
contact_instances)
contact_instances)
if not contact:
return False
child_iters = self._get_contact_iter(jid, account, contact, self.model)
if not child_iters: