From 48751a0071cf7e919067f5ab356bfb7c2bdaddeb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 13 Dec 2011 15:46:58 +0300 Subject: [PATCH] same fix (2) --- src/org/fox/ttrss/HeadlinesFragment.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/fox/ttrss/HeadlinesFragment.java b/src/org/fox/ttrss/HeadlinesFragment.java index e58436c6..0e7b718f 100644 --- a/src/org/fox/ttrss/HeadlinesFragment.java +++ b/src/org/fox/ttrss/HeadlinesFragment.java @@ -410,9 +410,10 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, TextView te = (TextView)v.findViewById(R.id.excerpt); + String articleContent = article.content != null ? article.content : ""; + if (te != null) { if (!m_combinedMode) { - String articleContent = article.content != null ? article.content : ""; String excerpt = Jsoup.parse(articleContent).text(); if (excerpt.length() > 100) @@ -431,7 +432,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, content.setMovementMethod(LinkMovementMethod.getInstance()); //content.setText(Html.fromHtml(article.content, new URLImageGetter(content, getActivity()), null)); - content.setText(Html.fromHtml(article.content, m_dummyGetter, null)); + content.setText(Html.fromHtml(articleContent, m_dummyGetter, null)); } else { content.setVisibility(View.GONE);