From f405395e47049194c0dfefe5b124a1d7a9d90327 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 24 Mar 2014 23:15:38 -0500 Subject: Ensure selected user is not null --- src/media-player-list-greeter.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/media-player-list-greeter.vala') 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++; -- cgit v1.2.3