workaround against crash if article content is null

This commit is contained in:
Andrew Dolgov 2011-12-13 15:43:40 +03:00
parent af3b289392
commit d30854eae7

View File

@ -117,7 +117,7 @@ public class ArticleFragment extends Fragment {
cssOverride = ""; cssOverride = "";
} }
String articleContent = m_article.content; String articleContent = m_article.content != null ? m_article.content : "";
Document doc = Jsoup.parse(articleContent); Document doc = Jsoup.parse(articleContent);