Skip to content

Commit fed419f

Browse files
committed
Fixed issue with songs being out of queue
1 parent 41e0d33 commit fed419f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • core/src/main/java/xyz/gianlu/librespot/player

core/src/main/java/xyz/gianlu/librespot/player/Player.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ void updateContext(@NotNull Remote3Frame frame) {
757757
Remote3Track track = tracks.get(i);
758758
track.addToState(state);
759759

760-
if (Objects.equals(trackUid, track.uri) || Objects.equals(trackUid, track.uid))
760+
if (trackUid != null && (Objects.equals(trackUid, track.uri) || Objects.equals(trackUid, track.uid)))
761761
index = i;
762762
}
763763

0 commit comments

Comments
 (0)