diff options
author | Conor Curran <conor.curran@canonical.com> | 2012-03-21 09:47:53 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2012-03-21 09:47:53 +0000 |
commit | cf5c77a39f7355e8a2a6ee719a36bcbe6dfc0d7f (patch) | |
tree | aeb2baa6e22d5418f78a9c5ce43fada6229afd18 | |
parent | 55ded30a56e2c2d3f8d98f2feb03a68b9096021b (diff) | |
download | ayatana-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
-rw-r--r-- | src/mpris2-controller.vala | 3 |
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; } |