summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2023-08-19 10:56:38 +0200
committerByteHamster <ByteHamster@users.noreply.github.com>2023-08-19 11:21:52 +0200
commit3ce3219a3bdc980ed70b04d2facc6604e23ad68b (patch)
tree514941a1f3f82d8c82629e7a878587d4d940813e
parent056d262ab534f944e5ac514f8e73d21145ed1c24 (diff)
downloadAntennaPod-3ce3219a3bdc980ed70b04d2facc6604e23ad68b.zip
Do not crash if item is not loaded yet
-rw-r--r--app/src/main/java/de/danoeh/antennapod/fragment/ItemPagerFragment.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ItemPagerFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ItemPagerFragment.java
index 016f29e65..3d9e39482 100644
--- a/app/src/main/java/de/danoeh/antennapod/fragment/ItemPagerFragment.java
+++ b/app/src/main/java/de/danoeh/antennapod/fragment/ItemPagerFragment.java
@@ -161,6 +161,9 @@ public class ItemPagerFragment extends Fragment implements MaterialToolbar.OnMen
}
private void openPodcast() {
+ if (item == null) {
+ return;
+ }
Fragment fragment = FeedItemlistFragment.newInstance(item.getFeedId());
((MainActivity) getActivity()).loadChildFragment(fragment);
}