Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pesjak opened this issue Sep 18, 2017 · 4 comments

Comments

@pesjak
Copy link

pesjak commented Sep 18, 2017

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?

@EminDemiri
Copy link

i have te same error. How to fix it?

@pesjak
Copy link
Author

pesjak commented Jan 15, 2018

I removed the animation.

@adonixis
Copy link
Owner

Can you write your device model and version of Android?

@vishalgera
Copy link

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();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants