diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2022-10-14 18:35:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-14 18:35:00 +0200 |
commit | 232a0266518dd21eb5bf3e05ca55cc20c6ee9386 (patch) | |
tree | 736580a7712ade15f1eb6954642d7e894459e498 | |
parent | 4014951e9c02f7ff6ba41cebe629211fe0ecb4e9 (diff) | |
parent | 0facf7ce6aced8cb0041af8bc2240f8bf21aff6a (diff) | |
download | AntennaPod-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.java | 3 |
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); } |