summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2022-10-14 18:35:00 +0200
committerGitHub <noreply@github.com>2022-10-14 18:35:00 +0200
commit232a0266518dd21eb5bf3e05ca55cc20c6ee9386 (patch)
tree736580a7712ade15f1eb6954642d7e894459e498
parent4014951e9c02f7ff6ba41cebe629211fe0ecb4e9 (diff)
parent0facf7ce6aced8cb0041af8bc2240f8bf21aff6a (diff)
downloadAntennaPod-232a0266518dd21eb5bf3e05ca55cc20c6ee9386.zip
Merge pull request #6137 from ByteHamster/fix-crash-clicking-icon
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);
}