~indicator-applet-developers/indicator-sound/trunk.14.04

« back to all changes in this revision

Viewing changes to src/media-player-list-greeter.vala

  • Committer: CI bot
  • Author(s): Ted Gould
  • Date: 2014-04-01 23:20:15 UTC
  • mfrom: (435.2.4 null-selected-user)
  • Revision ID: ps-jenkins@lists.canonical.com-20140401232015-5y51og90dn4kox8u
Check the username has been gotten before using it. Fixes: 1297078

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
                public override MediaPlayer? next_value () {
109
109
                        MediaPlayer? retval = null;
110
110
 
111
 
                        if (i == 0) {
 
111
                        if (i == 0 && list.selected_user != null) {
112
112
                                retval = list.players.lookup(list.selected_user);
113
113
                        }
114
114
                        i++;