From b68cad374622522a2d2b240cf7dbc6d6b7aaefdb Mon Sep 17 00:00:00 2001 From: Behnam Mabodi Date: Wed, 26 Oct 2016 12:33:30 +0330 Subject: [PATCH] Fix NullPointerException When item is null --- .../src/main/java/com/twotoasters/jazzylistview/JazzyHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/library/src/main/java/com/twotoasters/jazzylistview/JazzyHelper.java b/library/src/main/java/com/twotoasters/jazzylistview/JazzyHelper.java index 3d96e9d..c746f37 100644 --- a/library/src/main/java/com/twotoasters/jazzylistview/JazzyHelper.java +++ b/library/src/main/java/com/twotoasters/jazzylistview/JazzyHelper.java @@ -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; ViewPropertyAnimator animator = item.animate() .setDuration(DURATION) .setInterpolator(new AccelerateDecelerateInterpolator());