Merge pull request #6137 from ByteHamster/fix-crash-clicking-icon

Fix crash when clicking cover icon when episode is not loaded yet
This commit is contained in:
ByteHamster 2022-10-14 18:35:00 +02:00 committed by GitHub
commit 232a026651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
} }