From 006a6d008f939772a87f9eef7cf3ff988bcd7b8b Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Thu, 5 Dec 2024 15:42:03 +0100 Subject: [PATCH] Fix crash when trying to report playback progress when there is no current stream --- .../org/jellyfin/androidtv/ui/playback/PlaybackController.java | 2 ++ 1 file changed, 2 insertions(+) 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 c271641a19..f02488cc8d 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 @@ -1000,6 +1000,8 @@ private long getTimeShiftedProgress() { } private void startReportLoop() { + if (mCurrentStreamInfo == null) return; + stopReportLoop(); reportingHelper.getValue().reportProgress(mFragment, this, getCurrentlyPlayingItem(), getCurrentStreamInfo(), mCurrentPosition * 10000, false); mReportLoop = new Runnable() {