Fix out of bounds error.

We might call timeline.add() with an invalid position if we skipped a song due to being unfilled.
Use 'added' instead of 'j' to calculate the queue position.
This commit is contained in:
Adrian Ulrich 2017-06-09 09:37:03 +02:00
parent 38cbce6d78
commit c2ed38f0af

View File

@ -775,7 +775,7 @@ public final class SongTimeline {
continue;
}
timeline.add(start + j, song);
timeline.add(start + added, song);
added++;
if (jumpSong == null) {