From 84af966a87e4d56742af95bc7cf0c3fbcd6ab916 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <yann@leboulanger.org>
Date: Mon, 20 Nov 2017 21:18:32 +0100
Subject: [PATCH] prevent traceback

---
 gajim/roster_window.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gajim/roster_window.py b/gajim/roster_window.py
index 31ea33ef3c..4cf496d4a3 100644
--- a/gajim/roster_window.py
+++ b/gajim/roster_window.py
@@ -1016,6 +1016,8 @@ class RosterWindow:
             self.draw_contact(jid, account)
             # Hide Group if all childs are hidden
             contact = app.contacts.get_contact(account, jid)
+            if not contact:
+                return
             for group in contact.get_shown_groups():
                 self.draw_group(group, account)
 
-- 
GitLab