diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2011-10-28 09:45:22 -0400 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2011-10-28 09:45:22 -0400 |
commit | 6c40e13a44770e9bda393e5b0b1ebefa6b8077d5 (patch) | |
tree | 8d5e2ee74ab2a728a2af4e514740266424b5b955 /src/music-player-bridge.vala | |
parent | 3b17bc829e96005f2cd6897be7cf77fec37ef012 (diff) | |
parent | ef3495e8ca6aa257c2d3123a7b0a25067570b0de (diff) | |
download | ayatana-indicator-sound-6c40e13a44770e9bda393e5b0b1ebefa6b8077d5.tar.gz ayatana-indicator-sound-6c40e13a44770e9bda393e5b0b1ebefa6b8077d5.tar.bz2 ayatana-indicator-sound-6c40e13a44770e9bda393e5b0b1ebefa6b8077d5.zip |
Import upstream version 0.7.9.1
Diffstat (limited to 'src/music-player-bridge.vala')
-rw-r--r-- | src/music-player-bridge.vala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/music-player-bridge.vala b/src/music-player-bridge.vala index 0c9cb10..e7bc1fb 100644 --- a/src/music-player-bridge.vala +++ b/src/music-player-bridge.vala @@ -229,14 +229,13 @@ public class MusicPlayerBridge : GLib.Object { var result = desktop_or_interface; var tokens = desktop_or_interface.split( "." ); - if ( tokens.length > 1 ){ + if (tokens != null && tokens.length > 1){ result = tokens[tokens.length - 1]; } var temp = result.split("-"); - if (temp.length > 1){ + if (temp != null && temp.length > 1){ result = temp[0]; } - debug("determine key result = %s", result); return result; } |