fix possible crash in HeadlinesActivity.onArticleSelected
This commit is contained in:
parent
2c71f2e829
commit
cb13303442
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user