Fixed crash when context is null

From Google Play console
This commit is contained in:
ByteHamster 2019-07-23 20:53:37 +02:00
parent 0e1cac9098
commit 4551b1fbc9
1 changed files with 3 additions and 2 deletions

View File

@ -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;