diff --git a/app/src/main/java/com/github/libretube/ui/fragments/PlaylistFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/PlaylistFragment.kt index 2a7f71807..1be67183d 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/PlaylistFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/PlaylistFragment.kt @@ -253,7 +253,7 @@ class PlaylistFragment : DynamicLayoutManagerFragment() { PlayingQueue.add(*queue.toTypedArray()) NavigationHelper.navigateVideo( requireContext(), - queue.first().url, + queue.firstOrNull()?.url, playlistId = playlistId, keepQueue = true )