Fix crash when clicking cover icon when episode is not loaded yet

This commit is contained in:
ByteHamster 2022-10-08 12:56:54 +02:00
parent 4014951e9c
commit 0facf7ce6a
1 changed files with 3 additions and 0 deletions

View File

@ -369,6 +369,9 @@ public class ItemFragment extends Fragment {
} }
private void openPodcast() { private void openPodcast() {
if (item == null) {
return;
}
Fragment fragment = FeedItemlistFragment.newInstance(item.getFeedId()); Fragment fragment = FeedItemlistFragment.newInstance(item.getFeedId());
((MainActivity) getActivity()).loadChildFragment(fragment); ((MainActivity) getActivity()).loadChildFragment(fragment);
} }