From 1b93e7ef1011e34a84d76446a6e7d5281819f6c0 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Mon, 16 Mar 2020 00:10:29 +0100 Subject: [PATCH] Do not try to load image when media is null --- .../main/java/de/danoeh/antennapod/fragment/CoverFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/CoverFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/CoverFragment.java index cc1868321..4f8b4e971 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/CoverFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/CoverFragment.java @@ -120,7 +120,7 @@ public class CoverFragment extends Fragment { @Subscribe(threadMode = ThreadMode.MAIN) public void onEventMainThread(PlaybackPositionEvent event) { - if (controller == null) { + if (media == null) { return; } displayCoverImage(event.getPosition());