Skip to content

Commit

Permalink
Protect against NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaar committed Apr 1, 2015
1 parent 4a69239 commit 4528292
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ private void doJazziness(View item, int position, int scrollDirection) {
}

private void doJazzinessImpl(View item, int position, int scrollDirection) {
if (item==null)return;//protect against NPE
ViewPropertyAnimator animator = item.animate()
.setDuration(DURATION)
.setInterpolator(new AccelerateDecelerateInterpolator());
Expand Down

0 comments on commit 4528292

Please sign in to comment.