same fix for headlines

This commit is contained in:
Andrew Dolgov 2011-12-13 15:46:21 +03:00
parent dd1a8ee728
commit 2a4029c3f9

View File

@ -412,7 +412,8 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
if (te != null) { if (te != null) {
if (!m_combinedMode) { 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) if (excerpt.length() > 100)
excerpt = excerpt.substring(0, 100) + "..."; excerpt = excerpt.substring(0, 100) + "...";