[empathy] contact_list_store_get_contact_status_icon_with_icon_name: early return if icon_name is NULL



commit 62ba54af21d4f9ca133824a7fda636ab9a80a139
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Jan 11 17:02:43 2010 +0000

    contact_list_store_get_contact_status_icon_with_icon_name: early return if icon_name is NULL

 libempathy-gtk/empathy-contact-list-store.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-list-store.c b/libempathy-gtk/empathy-contact-list-store.c
index d284b94..1309836 100644
--- a/libempathy-gtk/empathy-contact-list-store.c
+++ b/libempathy-gtk/empathy-contact-list-store.c
@@ -1724,6 +1724,9 @@ contact_list_store_get_contact_status_icon (EmpathyContactListStore *store,
 	const gchar                 *status_icon_name = NULL;
 
 	status_icon_name = empathy_icon_name_for_contact (contact);
+	if (status_icon_name == NULL)
+		return NULL;
+
 	pixbuf_status = contact_list_store_get_contact_status_icon_with_icon_name (
 			    store,
 			    contact,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]