From 6a1b1c8baf4c30fabd76395e6ff81fd3b7cd621d Mon Sep 17 00:00:00 2001 From: Abderaouf Bencherait Date: Fri, 26 Jun 2009 19:38:37 -0400 Subject: fixed libnotify crashing if icon doesn't exist --- src/empathy-status-icon.c | 4 +++- 1 file changed, 3 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 d6520ff7c..a4b01b7c0 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -153,7 +153,9 @@ status_icon_update_notification (EmpathyStatusIcon *icon) G_CALLBACK (status_icon_notification_closed_cb), icon); } - notify_notification_set_icon_from_pixbuf (priv->notification, + /* if icon doesn't exist libnotify will crash */ + if (pixbuf != NULL) + notify_notification_set_icon_from_pixbuf (priv->notification, pixbuf); notify_notification_show (priv->notification, NULL); -- cgit v1.2.3