diff --git a/src/roster_window.py b/src/roster_window.py index 7253acbf4..1fec55ea7 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1343,7 +1343,7 @@ class RosterWindow: jid = data['jid'] account = data['account'] contact = gajim.contacts.get_first_contact_from_jid(account, jid) - if self.contact_is_visible(contact, account): + if contact and self.contact_is_visible(contact, account): return True return False else: