aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-controller.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2012-03-21 09:47:53 +0000
committerConor Curran <conor.curran@canonical.com>2012-03-21 09:47:53 +0000
commitcf5c77a39f7355e8a2a6ee719a36bcbe6dfc0d7f (patch)
treeaeb2baa6e22d5418f78a9c5ce43fada6229afd18 /src/mpris2-controller.vala
parent55ded30a56e2c2d3f8d98f2feb03a68b9096021b (diff)
downloadayatana-indicator-sound-cf5c77a39f7355e8a2a6ee719a36bcbe6dfc0d7f.tar.gz
ayatana-indicator-sound-cf5c77a39f7355e8a2a6ee719a36bcbe6dfc0d7f.tar.bz2
ayatana-indicator-sound-cf5c77a39f7355e8a2a6ee719a36bcbe6dfc0d7f.zip
make sure to check the active playlists container is not null
Diffstat (limited to 'src/mpris2-controller.vala')
-rw-r--r--src/mpris2-controller.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala
index 9cd02c4..2cc8d12 100644
--- a/src/mpris2-controller.vala
+++ b/src/mpris2-controller.vala
@@ -248,6 +248,9 @@ public class Mpris2Controller : GLib.Object
private bool validate_playlists_details()
{
+ if (this.playlists.ActivePlaylist == null){
+ return false;
+ }
if (this.playlists.ActivePlaylist.valid == false){
return false;
}