Fixed NPE
This commit is contained in:
parent
c6e81391b2
commit
e464569712
|
@ -592,7 +592,7 @@ public class ItemFragment extends Fragment implements OnSwipeGesture {
|
|||
private FeedItem loadInBackground() {
|
||||
FeedItem feedItem = DBReader.getFeedItem(feedItems[feedItemPos]);
|
||||
if (feedItem != null) {
|
||||
Timeline t = new Timeline(getActivity(), feedItem);
|
||||
Timeline t = new Timeline(getContext(), feedItem);
|
||||
webviewData = t.processShownotes(false);
|
||||
}
|
||||
return feedItem;
|
||||
|
|
|
@ -421,7 +421,10 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
|||
// Child List
|
||||
try {
|
||||
for (FeedItem feedItem : taskManager.getQueue()) {
|
||||
mediaItems.add(feedItem.getMedia().getMediaItem());
|
||||
FeedMedia media = feedItem.getMedia();
|
||||
if (media != null) {
|
||||
mediaItems.add(media.getMediaItem());
|
||||
}
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Reference in New Issue