Skip to content

Commit

Permalink
Merge pull request #146 from pinpong/master
Browse files Browse the repository at this point in the history
Fix NullPointerException on a null object reference
  • Loading branch information
janheinrichmerker authored Sep 28, 2016
2 parents f16ff59 + 46becf1 commit 355a787
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public int getCount() {

@Override
public boolean isViewFromObject(View view, Object object) {
return adapter.isViewFromObject(view, object);
return object != null && adapter.isViewFromObject(view, object);
}

@Override
Expand Down

0 comments on commit 355a787

Please sign in to comment.