aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index fe032c9ee..eabdc0a46 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -530,6 +530,10 @@ empathy_pixbuf_from_icon_name (const gchar *icon_name,
gint w, h;
gint size = 48;
+ if (!icon_name) {
+ return NULL;
+ }
+
theme = gtk_icon_theme_get_default ();
if (gtk_icon_size_lookup (icon_size, &w, &h)) {