Fix exception raised if something is added to the queue while Chords isn't present.

This commit is contained in:
Nekojimi 2024-04-14 18:45:42 +01:00
parent 11c8991943
commit c8684dbe75
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}