android-list-to-grid icon indicating copy to clipboard operation
android-list-to-grid copied to clipboard

Keep Getting java.lang.NullPointerException: Attempt to get length of null array

Open pesjak opened this issue 7 years ago • 4 comments

The app keeps crashing tried from API19-23, when i'm trying to implement the animation. Screenshot The problem is that it doesn't crash at animation, because in stack there isn't any indication that it would crash in my code. If I remove ((Animatable) item.getIcon()).start(); it works. Any idea what can I been doing wrong?

pesjak avatar Sep 18 '17 05:09 pesjak

i have te same error. How to fix it?

EminDemiri avatar Jan 15 '18 14:01 EminDemiri

I removed the animation.

pesjak avatar Jan 15 '18 14:01 pesjak

Can you write your device model and version of Android?

adonixis avatar Jan 16 '18 06:01 adonixis

animated-vector supported in min API level 21 surround it to check VERSION CODE

if (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP_MR1) { ((Animatable) item.getIcon()).start(); }

vishalgera avatar Apr 24 '18 11:04 vishalgera