Skip to content

Commit 8a4d90d

Browse files
committed
Fix crash on autoplay
1 parent 7425958 commit 8a4d90d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,10 +467,12 @@ public void handleIntent(@NonNull final Intent intent) {
467467
}
468468

469469
UIs.call(PlayerUi::setupAfterIntent);
470-
NavigationHelper.sendPlayerStartedEvent(context,
471-
playQueue.getItem().getTitle(),
472-
playQueue.getItem().getUploader()
473-
);
470+
if (playQueue != null) {
471+
NavigationHelper.sendPlayerStartedEvent(context,
472+
playQueue.getItem().getTitle(),
473+
playQueue.getItem().getUploader()
474+
);
475+
}
474476
}
475477

476478
private void initUIsForCurrentPlayerType() {

0 commit comments

Comments
 (0)