onArticleSelected: bail out if article is null

This commit is contained in:
Andrew Dolgov 2013-06-07 12:53:00 +04:00
parent 22d949f83c
commit fae361370d

View File

@ -179,6 +179,8 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL
@Override
public void onArticleSelected(Article article, boolean open) {
if (article == null) return;
if (article.unread) {
article.unread = false;
saveArticleUnread(article);