prevent TB in send_chatstate if jid is ''

This commit is contained in:
Dimitur Kirov 2005-07-26 15:00:34 +00:00
parent 1dee67e3f6
commit 19edb7b2d9
1 changed files with 5 additions and 0 deletions

View File

@ -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