From 19edb7b2d9dcbfa2d1d1f34f918c23eb1d4d18ca Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Tue, 26 Jul 2005 15:00:34 +0000 Subject: [PATCH] prevent TB in send_chatstate if jid is '' --- src/tabbed_chat_window.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index 19ac1a820..0accc8efe 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -490,6 +490,11 @@ class TabbedChatWindow(chat.Chat): if jid is None: jid = self.get_active_jid() + + # this happens sometime when we close fastly all tabs + if jid is '': + return + contact = gajim.get_first_contact_instance_from_jid(self.account, jid) if contact.chatstate is False: # jid cannot do jep85