Skip to content

Commit cdbd1d7

Browse files
committed
Fixed NPE when skipping before song loaded
1 parent dfc88a2 commit cdbd1d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

player/src/main/java/xyz/gianlu/librespot/player/playback/PlayerQueueEntry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public void close() {
354354
clearOutput();
355355

356356
try {
357-
codec.close();
357+
if (codec != null) codec.close();
358358
} catch (IOException ignored) {
359359
}
360360
}

0 commit comments

Comments
 (0)