Fix crash.

This commit is contained in:
dosiecki 2015-03-15 18:27:49 -07:00
parent e883cc4c57
commit e11580fdfd

View file

@ -82,6 +82,7 @@ public abstract class ReadingAdapter extends FragmentStatePagerAdapter {
}
public synchronized int getPosition(Story story) {
if (stories == null) return -1;
int pos = 0;
while (pos < stories.getCount()) {
stories.moveToPosition(pos);