[Sugar-devel] [PATCH] Make sure we don't change the owner's colors because of a network event #2348

Tomeu Vizoso tomeu.vizoso at collabora.co.uk
Mon Sep 20 08:55:28 EDT 2010


---
 src/jarabe/model/neighborhood.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/jarabe/model/neighborhood.py b/src/jarabe/model/neighborhood.py
index b808e12..76a0a7d 100644
--- a/src/jarabe/model/neighborhood.py
+++ b/src/jarabe/model/neighborhood.py
@@ -829,7 +829,7 @@ class Neighborhood(gobject.GObject):
 
     def __buddy_updated_cb(self, account, contact_id, properties):
         logging.debug('__buddy_updated_cb %r', contact_id)
-        if contact_id not in self._buddies:
+        if contact_id is None or contact_id not in self._buddies:
             logging.debug('__buddy_updated_cb Unknown buddy with contact_id %r',
                           contact_id)
             return
-- 
1.7.2.3



More information about the Sugar-devel mailing list