diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-06-16 01:26:48 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-06-16 01:26:48 +0200 |
commit | ff612a04cdf8097a4d7a3be69032d71e4a8495da (patch) | |
tree | b5cad9630cda859d834b91656c24367c5c69bfba /src | |
parent | 30017a316e1a514e2441f45ab1545442fe94c0b3 (diff) | |
download | AntennaPod-ff612a04cdf8097a4d7a3be69032d71e4a8495da.zip |
Fixed: NullPointerException in OnlineFeedView
Diffstat (limited to 'src')
-rw-r--r-- | src/de/danoeh/antennapod/activity/DefaultOnlineFeedViewActivity.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/de/danoeh/antennapod/activity/DefaultOnlineFeedViewActivity.java b/src/de/danoeh/antennapod/activity/DefaultOnlineFeedViewActivity.java index 9c4634d93..c129d89ed 100644 --- a/src/de/danoeh/antennapod/activity/DefaultOnlineFeedViewActivity.java +++ b/src/de/danoeh/antennapod/activity/DefaultOnlineFeedViewActivity.java @@ -82,8 +82,10 @@ public class DefaultOnlineFeedViewActivity extends OnlineFeedViewActivity { if (feed.getItems() != null) { HtmlToPlainText formatter = new HtmlToPlainText(); for (FeedItem item : feed.getItems()) { - Document description = Jsoup.parse(item.getDescription()); - item.setDescription(StringUtils.trim(formatter.getPlainText(description))); + if (item.getDescription() != null) { + Document description = Jsoup.parse(item.getDescription()); + item.setDescription(StringUtils.trim(formatter.getPlainText(description))); + } } } } |