diff options
author | ByteHamster <info@bytehamster.com> | 2022-10-08 12:56:54 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-10-08 12:56:54 +0200 |
commit | 0facf7ce6aced8cb0041af8bc2240f8bf21aff6a (patch) | |
tree | 736580a7712ade15f1eb6954642d7e894459e498 | |
parent | 4014951e9c02f7ff6ba41cebe629211fe0ecb4e9 (diff) | |
download | AntennaPod-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.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); } |