fix possible crash in HeadlinesActivity.onArticleSelected

This commit is contained in:
Andrew Dolgov 2013-06-03 09:23:33 +04:00
parent 2c71f2e829
commit cb13303442

View File

@ -201,7 +201,9 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL
} else { } else {
HeadlinesFragment hf = (HeadlinesFragment) getSupportFragmentManager().findFragmentByTag(FRAG_HEADLINES); HeadlinesFragment hf = (HeadlinesFragment) getSupportFragmentManager().findFragmentByTag(FRAG_HEADLINES);
hf.setActiveArticle(article); if (hf != null) {
hf.setActiveArticle(article);
}
} }
GlobalState.getInstance().m_activeArticle = article; GlobalState.getInstance().m_activeArticle = article;