Fixed crash when context is null
From Google Play console
This commit is contained in:
parent
0e1cac9098
commit
4551b1fbc9
|
@ -603,8 +603,9 @@ public class ItemFragment extends Fragment implements OnSwipeGesture {
|
||||||
@Nullable
|
@Nullable
|
||||||
private FeedItem loadInBackground() {
|
private FeedItem loadInBackground() {
|
||||||
FeedItem feedItem = DBReader.getFeedItem(feedItems[feedItemPos]);
|
FeedItem feedItem = DBReader.getFeedItem(feedItems[feedItemPos]);
|
||||||
if (feedItem != null) {
|
Context context = getContext();
|
||||||
Timeline t = new Timeline(getContext(), feedItem);
|
if (feedItem != null && context != null) {
|
||||||
|
Timeline t = new Timeline(context, feedItem);
|
||||||
webviewData = t.processShownotes(false);
|
webviewData = t.processShownotes(false);
|
||||||
}
|
}
|
||||||
return feedItem;
|
return feedItem;
|
||||||
|
|
Loading…
Reference in New Issue