diff options
author | ByteHamster <info@bytehamster.com> | 2019-05-08 15:37:44 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2019-05-08 15:37:53 +0200 |
commit | e464569712506e0bae1a0150898f4c164a3f1cb3 (patch) | |
tree | c6aaf3b5ceac962c696d65dc9c55d4b2d5c67e21 /core | |
parent | c6e81391b2d7ed1ce238eccaff9e9f7a93408b2f (diff) | |
download | AntennaPod-e464569712506e0bae1a0150898f4c164a3f1cb3.zip |
Fixed NPE
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java index 7fe93a162..29c424e1b 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java @@ -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(); |