From a38c0151eeb417d4d4068d018450757d34aa327f Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sat, 30 May 2009 22:48:46 +0100 Subject: Cope with status icon begin NULL --- src/empathy-status-icon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/empathy-status-icon.c') diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c index cca2557a8..9c2194880 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -201,7 +201,8 @@ status_icon_update_icon (EmpathyStatusIcon *icon) icon_name = empathy_icon_name_for_presence (state); } - gtk_status_icon_set_from_icon_name (priv->icon, icon_name); + if (icon_name != NULL) + gtk_status_icon_set_from_icon_name (priv->icon, icon_name); } static gboolean -- cgit v1.2.3