diff options
-rw-r--r-- | mate-panel/panel-util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mate-panel/panel-util.c b/mate-panel/panel-util.c index 850ea8c1..838d9687 100644 --- a/mate-panel/panel-util.c +++ b/mate-panel/panel-util.c @@ -259,6 +259,11 @@ panel_uri_exists (const char *uri) GIcon * panel_gicon_from_icon_name (const char *icon_name) { GIcon *icon = NULL; + + if (icon_name == NULL) { + return NULL; + } + if (g_path_is_absolute(icon_name)) { if (!g_file_test (icon_name, G_FILE_TEST_EXISTS)) { gchar *name = g_path_get_basename (icon_name); |