mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-02 19:56:59 +01:00
Fixed nullpointerexception caused by FeedlistFragment
This commit is contained in:
parent
f42746555e
commit
c2a5f583e9
@ -3,6 +3,7 @@ package de.danoeh.antennapod.fragment;
|
||||
import java.util.List;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.os.AsyncTask;
|
||||
@ -94,10 +95,14 @@ public class FeedlistFragment extends Fragment implements
|
||||
AsyncTask<Void, Void, List[]> loadTask = new AsyncTask<Void, Void, List[]>() {
|
||||
@Override
|
||||
protected List[] doInBackground(Void... params) {
|
||||
return new List[]{DBReader.getFeedList(getActivity()),
|
||||
DBReader.getFeedStatisticsList(getActivity())};
|
||||
Context context = getActivity();
|
||||
if (context != null) {
|
||||
return new List[]{DBReader.getFeedList(context),
|
||||
DBReader.getFeedStatisticsList(context)};
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user