From 2a4029c3f94e92a2952ad500dd8b690db77f4da0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 13 Dec 2011 15:46:21 +0300 Subject: [PATCH] same fix for headlines --- src/org/fox/ttrss/HeadlinesFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/fox/ttrss/HeadlinesFragment.java b/src/org/fox/ttrss/HeadlinesFragment.java index 3a0232df..e58436c6 100644 --- a/src/org/fox/ttrss/HeadlinesFragment.java +++ b/src/org/fox/ttrss/HeadlinesFragment.java @@ -412,7 +412,8 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, if (te != null) { if (!m_combinedMode) { - String excerpt = Jsoup.parse(article.content).text(); + String articleContent = article.content != null ? article.content : ""; + String excerpt = Jsoup.parse(articleContent).text(); if (excerpt.length() > 100) excerpt = excerpt.substring(0, 100) + "...";