From ec6cebc3342d4b8777f690df0f687fc00d3d7122 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 7 Aug 2009 12:21:08 +0100 Subject: status_icon_update_notification: don't crash if event->message is NULL g_markup_escape_text isn't NULL-safe so we should be sure that event->message is not NULL before calling it. --- src/empathy-status-icon.c | 5 ++++- 1 file changed, 4 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 79e59c5f5..bbb97f410 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -138,7 +138,10 @@ status_icon_update_notification (EmpathyStatusIcon *icon) } if (priv->event) { - gchar *message_esc = g_markup_escape_text (priv->event->message, -1); + gchar *message_esc = NULL; + + if (priv->event->message != NULL) + message_esc = g_markup_escape_text (priv->event->message, -1); if (priv->notification) { notify_notification_update (priv->notification, -- cgit v1.2.3