From 406e142b2580574a808d2ff544cc9507b71b2176 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 29 Dec 2009 16:02:50 +0100 Subject: [PATCH] prevent bug when merging metacontacts --- src/roster_window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index d80efce69..6c95e94a3 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -3988,6 +3988,9 @@ class RosterWindow: _account = data['account'] _jid = data['jid'] _contact = gajim.contacts.get_first_contact_from_jid(_account, _jid) + if not _contact: + # One of the metacontacts may be not connected. + continue _contact.groups = c_dest.groups[:] gajim.contacts.add_metacontact(account_dest, c_dest.jid,