Do not load avatar from cache if token is empty. Fixes bug #517098.
authorXavier Claessens <xclaesse@src.gnome.org>
Mon, 18 Feb 2008 10:55:13 +0000 (10:55 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 18 Feb 2008 10:55:13 +0000 (10:55 +0000)
svn path=/trunk/; revision=652

libempathy/empathy-log-manager.c

index bb9ece0834c119e35c178c412a532f2f0c42c9cc..096761841457a30366b4aec77d97aff67f65544f 100644 (file)
@@ -362,7 +362,7 @@ empathy_log_manager_get_messages_for_file (EmpathyLogManager *manager,
                is_user_str = xmlGetProp (node, "isuser");
                msg_type_str = xmlGetProp (node, "type");
 
-               if (sender_avatar_token) {
+               if (!G_STR_EMPTY (sender_avatar_token)) {
                        avatar = empathy_avatar_new_from_cache (sender_avatar_token);
                }
                if (is_user_str) {