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
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue