summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2022-10-08 12:56:54 +0200
committerByteHamster <info@bytehamster.com>2022-10-08 12:56:54 +0200
commit0facf7ce6aced8cb0041af8bc2240f8bf21aff6a (patch)
tree736580a7712ade15f1eb6954642d7e894459e498
parent4014951e9c02f7ff6ba41cebe629211fe0ecb4e9 (diff)
downloadAntennaPod-0facf7ce6aced8cb0041af8bc2240f8bf21aff6a.zip
Fix crash when clicking cover icon when episode is not loaded yet
-rw-r--r--app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java
index a6f1a96f7..04aeef1c5 100644
--- a/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java
+++ b/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java
@@ -369,6 +369,9 @@ public class ItemFragment extends Fragment {
}
private void openPodcast() {
+ if (item == null) {
+ return;
+ }
Fragment fragment = FeedItemlistFragment.newInstance(item.getFeedId());
((MainActivity) getActivity()).loadChildFragment(fragment);
}