--- usr/share/gajim/src/roster_window.py.orig 2009-12-29 20:52:53.216505732 +0100 +++ usr/share/gajim/src/roster_window.py 2009-12-29 20:54:36.399038874 +0100 @@ -3815,6 +3815,9 @@ _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,