From 9ebfd4a45a13d55f8f926f3a97a6479cd8e4671c Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 28 Oct 2013 12:08:05 -0700 Subject: add the null safeguard back for the pathological case of 'application-default-icon' also failing --- src/sound-menu.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/sound-menu.vala b/src/sound-menu.vala index 4c62b38..f3f4fd9 100644 --- a/src/sound-menu.vala +++ b/src/sound-menu.vala @@ -149,7 +149,8 @@ class SoundMenu: Object var player_item = new MenuItem (player.name, "indicator." + player.id); player_item.set_attribute ("x-canonical-type", "s", "com.canonical.unity.media-player"); - player_item.set_attribute_value ("icon", g_icon_serialize (player.icon)); + if (icon != null) + player_item.set_attribute_value ("icon", g_icon_serialize (icon)); section.append_item (player_item); var playback_item = new MenuItem (null, null); -- cgit v1.2.3