Fix crash.

This commit is contained in:
dosiecki 2014-12-29 00:20:32 -08:00
parent 055ea6a9a5
commit 1d4c1556e3
2 changed files with 3 additions and 0 deletions

View file

@ -590,12 +590,14 @@ public class BlurDatabaseHelper {
}
public Cursor getStoriesCursor(FeedSet fs, StateFilter stateFilter, CancellationSignal cancellationSignal) {
if (fs == null) return null;
ReadFilter readFilter = PrefsUtils.getReadFilter(context, fs);
StoryOrder order = PrefsUtils.getStoryOrder(context, fs);
return getStoriesCursor(fs, stateFilter, readFilter, order, cancellationSignal);
}
private Cursor getStoriesCursor(FeedSet fs, StateFilter stateFilter, ReadFilter readFilter, StoryOrder order, CancellationSignal cancellationSignal) {
if (fs == null) return null;
if (fs.getSingleFeed() != null) {

View file

@ -90,6 +90,7 @@ public class FolderListFragment extends NbFragment implements OnGroupClickListen
@Override
public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
if (cursor == null) return;
try {
switch (loader.getId()) {
case SOCIALFEEDS_LOADER: