Made null check work

This commit is contained in:
ByteHamster 2019-04-28 14:18:47 +02:00
parent 5d124c476a
commit 835d1f8cd3
1 changed files with 4 additions and 1 deletions

View File

@ -629,8 +629,11 @@ public class ItemlistFragment extends ListFragment {
@Nullable
private Feed loadData() {
Feed feed = DBReader.getFeed(feedID);
if (feed == null) {
return null;
}
DBReader.loadAdditionalFeedItemListData(feed.getItems());
if(feed != null && feed.getItemFilter() != null) {
if (feed.getItemFilter() != null) {
FeedItemFilter filter = feed.getItemFilter();
feed.setItems(filter.filter(feed.getItems()));
}