mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-24 23:55:36 +01:00
Do not crash if item is not loaded yet
This commit is contained in:
parent
056d262ab5
commit
3ce3219a3b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user