Fixed: NullPointerException in OnlineFeedView

This commit is contained in:
daniel oeh 2014-06-16 01:26:48 +02:00
parent 30017a316e
commit ff612a04cd
1 changed files with 4 additions and 2 deletions

View File

@ -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)));
}
}
}
}