diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-10-28 12:08:05 -0700 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-10-28 12:08:05 -0700 |
commit | 9ebfd4a45a13d55f8f926f3a97a6479cd8e4671c (patch) | |
tree | 4e1e0b3c997438c39261b0e249001c9ce2bbbce0 | |
parent | 05d587408fa3b64ff569329d334c82c46eb64829 (diff) | |
download | ayatana-indicator-sound-9ebfd4a45a13d55f8f926f3a97a6479cd8e4671c.tar.gz ayatana-indicator-sound-9ebfd4a45a13d55f8f926f3a97a6479cd8e4671c.tar.bz2 ayatana-indicator-sound-9ebfd4a45a13d55f8f926f3a97a6479cd8e4671c.zip |
add the null safeguard back for the pathological case of 'application-default-icon' also failing
-rw-r--r-- | src/sound-menu.vala | 3 |
1 files changed, 2 insertions, 1 deletions
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); |