fix crash on long-used story lists

This commit is contained in:
dosiecki 2017-06-30 13:29:07 -07:00
parent c74b52faf8
commit 995256fb31

View file

@ -434,6 +434,7 @@ public abstract class ItemListFragment extends NbFragment implements OnScrollLis
int truePosition = position - 1;
Story story = adapter.getStory(truePosition);
if (story == null) return; // can happen on shrinking lists
if (getActivity().isFinishing()) return;
UIUtils.startReadingActivity(getFeedSet(), story.storyHash, getActivity());
}