Skip to content

Commit ab97f48

Browse files
committed
Fix null pointer exception in player initialization
1 parent 45599c7 commit ab97f48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/org/schabi/newpipe/player/Player.java

+1
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ public void handleIntent(@NonNull final Intent intent) {
674674
&& isPlaybackResumeEnabled(this)
675675
&& !samePlayQueue
676676
&& !newQueue.isEmpty()
677+
&& newQueue.getItem() != null
677678
&& newQueue.getItem().getRecoveryPosition() == PlayQueueItem.RECOVERY_UNSET) {
678679
databaseUpdateDisposable.add(recordManager.loadStreamState(newQueue.getItem())
679680
.observeOn(AndroidSchedulers.mainThread())

0 commit comments

Comments
 (0)