summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2019-05-08 15:37:44 +0200
committerByteHamster <info@bytehamster.com>2019-05-08 15:37:53 +0200
commite464569712506e0bae1a0150898f4c164a3f1cb3 (patch)
treec6aaf3b5ceac962c696d65dc9c55d4b2d5c67e21 /core
parentc6e81391b2d7ed1ce238eccaff9e9f7a93408b2f (diff)
downloadAntennaPod-e464569712506e0bae1a0150898f4c164a3f1cb3.zip
Fixed NPE
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java5
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();