diff --git a/src/roster_window.py b/src/roster_window.py index 117aa56f1fc661148a07b769188bb49e5cac88e2..2f5d9664eb5f5f98d440708b3d9d195e9b37700d 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1110,7 +1110,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: