Fix exception raised if something is added to the queue while Chords isn't present.
This commit is contained in:
parent
11c8991943
commit
c8684dbe75
|
@ -51,7 +51,7 @@ public class QueueManager extends QueueThing<Track, Track>
|
|||
// if (inputQueue.size() < QUEUE_TARGET_SIZE)
|
||||
// demandInput(QUEUE_TARGET_SIZE - inputQueue.size());
|
||||
|
||||
if (!handler.isPlaying() || handler.getCurrentTrack() == null)
|
||||
if (handler != null && !handler.isPlaying() || handler.getCurrentTrack() == null)
|
||||
handler.requestTrack();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue