onArticleSelected: bail out if article is null
This commit is contained in:
parent
22d949f83c
commit
fae361370d
@ -179,6 +179,8 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL
|
|||||||
@Override
|
@Override
|
||||||
public void onArticleSelected(Article article, boolean open) {
|
public void onArticleSelected(Article article, boolean open) {
|
||||||
|
|
||||||
|
if (article == null) return;
|
||||||
|
|
||||||
if (article.unread) {
|
if (article.unread) {
|
||||||
article.unread = false;
|
article.unread = false;
|
||||||
saveArticleUnread(article);
|
saveArticleUnread(article);
|
||||||
|
Loading…
Reference in New Issue
Block a user