diff --git a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt index 3aa12eef1..15a1a19a3 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt @@ -1128,7 +1128,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions { */ @SuppressLint("SetTextI18n") private fun updateDisplayedDuration() { - if (exoPlayer.duration < 0 || streams.livestream) return + if (exoPlayer.duration < 0 || streams.livestream || _binding == null) return playerBinding.duration.text = DateUtils.formatElapsedTime( exoPlayer.duration.div(1000),