same fix for headlines
This commit is contained in:
parent
dd1a8ee728
commit
2a4029c3f9
@ -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) + "...";
|
||||
|
Loading…
Reference in New Issue
Block a user