Do not crash if item is not loaded yet

This commit is contained in:
ByteHamster 2023-08-19 10:56:38 +02:00 committed by ByteHamster
parent 056d262ab5
commit 3ce3219a3b

View File

@ -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);
}