Skip to content

Commit

Permalink
Fix NullPointerException on a null object reference
Browse files Browse the repository at this point in the history
  • Loading branch information
pinpong committed Sep 28, 2016
1 parent f16ff59 commit 46becf1
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 46becf1

Please sign in to comment.