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 53649852f..1da15f3af 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 @@ -123,9 +123,10 @@ class PlaylistFragment : BaseFragment() { } binding.playAll.setOnClickListener { + if (response.relatedStreams.orEmpty().isEmpty()) return@setOnClickListener NavigationHelper.navigateVideo( requireContext(), - response.relatedStreams?.first()?.url?.toID(), + response.relatedStreams!!.first().url?.toID(), playlistId ) }