aboutsummaryrefslogtreecommitdiff
path: root/src/media-player-list-greeter.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-04-01 23:20:15 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-04-01 23:20:15 +0000
commitc5d28c44562ab8ba8b16830943d17d3f6923bbec (patch)
tree985c3e492c4dfcc561422bd69b8e19750e16377f /src/media-player-list-greeter.vala
parentd3dbfd0e650b22ad50eafb85137d6c720538c24a (diff)
parent4204b595030f6195500100af47cd3b57038e6013 (diff)
downloadayatana-indicator-sound-c5d28c44562ab8ba8b16830943d17d3f6923bbec.tar.gz
ayatana-indicator-sound-c5d28c44562ab8ba8b16830943d17d3f6923bbec.tar.bz2
ayatana-indicator-sound-c5d28c44562ab8ba8b16830943d17d3f6923bbec.zip
Check the username has been gotten before using it. Fixes: 1297078
Diffstat (limited to 'src/media-player-list-greeter.vala')
-rw-r--r--src/media-player-list-greeter.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/media-player-list-greeter.vala b/src/media-player-list-greeter.vala
index 15e4c55..4af57af 100644
--- a/src/media-player-list-greeter.vala
+++ b/src/media-player-list-greeter.vala
@@ -108,7 +108,7 @@ public class MediaPlayerListGreeter : MediaPlayerList {
public override MediaPlayer? next_value () {
MediaPlayer? retval = null;
- if (i == 0) {
+ if (i == 0 && list.selected_user != null) {
retval = list.players.lookup(list.selected_user);
}
i++;