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,8 +201,10 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL
} else { } else {
HeadlinesFragment hf = (HeadlinesFragment) getSupportFragmentManager().findFragmentByTag(FRAG_HEADLINES); HeadlinesFragment hf = (HeadlinesFragment) getSupportFragmentManager().findFragmentByTag(FRAG_HEADLINES);
if (hf != null) {
hf.setActiveArticle(article); hf.setActiveArticle(article);
} }
}
GlobalState.getInstance().m_activeArticle = article; GlobalState.getInstance().m_activeArticle = article;