diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2016-01-16 11:04:09 +0100 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2016-01-16 11:04:09 +0100 |
commit | 102363c97f0fbda6fc7f82c8c8c134996a743c3e (patch) | |
tree | 76bbef3e06c88bde59d2f8059369e2006592ec9c | |
parent | 95bb95fc89f8e3dc32c67b8a19c3f8ecf48057aa (diff) | |
download | AntennaPod-102363c97f0fbda6fc7f82c8c8c134996a743c3e.zip |
Check that image url is not empty
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSITunes.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSITunes.java b/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSITunes.java index 6406295c1..9b9849c49 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSITunes.java +++ b/core/src/main/java/de/danoeh/antennapod/core/syndication/namespace/NSITunes.java @@ -1,5 +1,7 @@ package de.danoeh.antennapod.core.syndication.namespace; +import android.text.TextUtils; + import org.xml.sax.Attributes; import java.util.concurrent.TimeUnit; @@ -36,8 +38,10 @@ public class NSITunes extends Namespace { } else { // this is the feed image // prefer to all other images - image.setOwner(state.getFeed()); - state.getFeed().setImage(image); + if(!TextUtils.isEmpty(image.getDownload_url())) { + image.setOwner(state.getFeed()); + state.getFeed().setImage(image); + } } } |