diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2016-02-09 18:10:35 +0100 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2016-02-09 18:10:35 +0100 |
commit | b7ff0d1565eed94a8d7612ea7bdd7f5bb77457ec (patch) | |
tree | d0c7a592dd32782148689549db44e2e17b3d9930 | |
parent | 1e5f988479e86b3502bbfe8cf284f1fe58a9daa4 (diff) | |
download | AntennaPod-b7ff0d1565eed94a8d7612ea7bdd7f5bb77457ec.zip |
Prevent NPE
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java b/core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java index 06c8b19cb..f1ecaf04f 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java +++ b/core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java @@ -425,10 +425,10 @@ public class FeedMedia extends FeedFile implements Playable { @Override public String getFeedTitle() { - if (item == null) { + if (item == null || item.getFeed() == null) { return null; } - return getItem().getFeed().getTitle(); + return item.getFeed().getTitle(); } @Override |