From a3fb1bac82e763f3e81cc18f41175d094a7a3a4b Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 23 Apr 2005 19:09:03 +0000 Subject: [PATCH] it's possible that we don't have the jid of a contact in gc --- src/roster_window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index c091229e6..63bda3743 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -175,6 +175,8 @@ class Roster_window: def get_appropriate_state_images(self, jid): '''check jid and return the appropriate state images dict''' + if not jid: # we don't have the jid of the contact (in gc) + state_images = self.jabber_state_images if jid.find('@aim.') != -1: state_images = self.transports_state_images['aim'] elif jid.find('@gadugadu.') != -1: