Correct null pointer
This commit is contained in:
parent
75113f051a
commit
270f52321b
@ -153,7 +153,8 @@ public class TrackScheduler extends AudioEventAdapter {
|
|||||||
// Start the next track, regardless of if something is already playing or not. In case queue was empty, we are
|
// Start the next track, regardless of if something is already playing or not. In case queue was empty, we are
|
||||||
// giving null to startTrack, which is a valid argument and will simply stop the player.
|
// giving null to startTrack, which is a valid argument and will simply stop the player.
|
||||||
UserAudioTrack track = queue.poll();
|
UserAudioTrack track = queue.poll();
|
||||||
this.currentPlayingTrack = track;
|
if(track != null)
|
||||||
|
this.currentPlayingTrack = track;
|
||||||
if(track != null)
|
if(track != null)
|
||||||
player.startTrack(track.getAudioTrack(), false);
|
player.startTrack(track.getAudioTrack(), false);
|
||||||
needAutoPlay();
|
needAutoPlay();
|
||||||
|
Loading…
Reference in New Issue
Block a user