From 68536513fdcbac1a816529a0be3e666f0270042c Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Fri, 7 Oct 2005 10:21:15 +0000
Subject: [PATCH] fix TB when we get a chatstate message of a not in the roster
 contact

---
 src/gajim.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gajim.py b/src/gajim.py
index eebdd6e9aa..d705997a6b 100755
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -430,7 +430,7 @@ class Interface:
 				contact.chatstate = False
 		else:
 			# Brand new message, incoming.  
-			if chatstate == 'active':  
+			if contact and chatstate == 'active':  
 				contact.chatstate = chatstate
 
 		if not array[1]: #empty message text
-- 
GitLab