Fix potential crashes

This commit is contained in:
tom79 2019-05-13 07:21:09 +02:00
parent bc7dcdde1f
commit b246dbf738
1 changed files with 2 additions and 1 deletions

View File

@ -707,7 +707,8 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn
statusListAdapter.notifyItemChanged(0);
i++;
}
initialBookMarkDate = statuses.get(0).getCreated_at();
if( statuses.size() > 0)
initialBookMarkDate = statuses.get(0).getCreated_at();
asyncTask = new RetrieveFeedsAfterBookmarkAsyncTask(context, null, DisplayStatusFragment.this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
}