diff options
author | ByteHamster <info@bytehamster.com> | 2019-07-23 20:53:37 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2019-07-23 20:53:40 +0200 |
commit | 4551b1fbc94ddafe749ed59dfbd1a28456c3fe73 (patch) | |
tree | b2efb533a61bb6643923f80f94ec171897d0b8d7 /app/src/main/java/de/danoeh/antennapod | |
parent | 0e1cac909807a75517a7536f5c9189c3a7cc7d5f (diff) | |
download | AntennaPod-4551b1fbc94ddafe749ed59dfbd1a28456c3fe73.zip |
Fixed crash when context is null
From Google Play console
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java index 149718569..432ada44e 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java @@ -603,8 +603,9 @@ public class ItemFragment extends Fragment implements OnSwipeGesture { @Nullable private FeedItem loadInBackground() { FeedItem feedItem = DBReader.getFeedItem(feedItems[feedItemPos]); - if (feedItem != null) { - Timeline t = new Timeline(getContext(), feedItem); + Context context = getContext(); + if (feedItem != null && context != null) { + Timeline t = new Timeline(context, feedItem); webviewData = t.processShownotes(false); } return feedItem; |