From d349b796656400cd94f4b7af310aba6214a7f8e9 Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Tue, 24 Dec 2024 12:21:35 +0100 Subject: [PATCH] Fix crash when starting progress report loop without active stream in video player --- .../org/jellyfin/androidtv/ui/playback/PlaybackController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/jellyfin/androidtv/ui/playback/PlaybackController.java b/app/src/main/java/org/jellyfin/androidtv/ui/playback/PlaybackController.java index f02488cc8d..908e2d705f 100644 --- a/app/src/main/java/org/jellyfin/androidtv/ui/playback/PlaybackController.java +++ b/app/src/main/java/org/jellyfin/androidtv/ui/playback/PlaybackController.java @@ -1023,7 +1023,8 @@ public void run() { private void startPauseReportLoop() { stopReportLoop(); - reportingHelper.getValue().reportProgress(mFragment, this, getCurrentlyPlayingItem(), getCurrentStreamInfo(), mCurrentPosition * 10000, true); + if (mCurrentStreamInfo == null) return; + reportingHelper.getValue().reportProgress(mFragment, this, getCurrentlyPlayingItem(), mCurrentStreamInfo, mCurrentPosition * 10000, true); mReportLoop = new Runnable() { @Override public void run() {