From cb133034422a43f07949986a002c163d554ef7ed Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 3 Jun 2013 09:23:33 +0400 Subject: [PATCH] fix possible crash in HeadlinesActivity.onArticleSelected --- src/org/fox/ttrss/HeadlinesActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/fox/ttrss/HeadlinesActivity.java b/src/org/fox/ttrss/HeadlinesActivity.java index e9e2439d..6d0af32b 100644 --- a/src/org/fox/ttrss/HeadlinesActivity.java +++ b/src/org/fox/ttrss/HeadlinesActivity.java @@ -201,7 +201,9 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL } else { HeadlinesFragment hf = (HeadlinesFragment) getSupportFragmentManager().findFragmentByTag(FRAG_HEADLINES); - hf.setActiveArticle(article); + if (hf != null) { + hf.setActiveArticle(article); + } } GlobalState.getInstance().m_activeArticle = article;