From 835d1f8cd342b81e9e31b2eec3ef6eb1a4784e7a Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 28 Apr 2019 14:18:47 +0200 Subject: [PATCH] Made null check work --- .../java/de/danoeh/antennapod/fragment/ItemlistFragment.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java index dfd9ac924..ba3ab4a97 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java @@ -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())); }