-
Notifications
You must be signed in to change notification settings - Fork 397
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
NullPointerException #43
Comments
There is a lot of information missing here. If this is something you are getting on you own app, please post the code, you may be doing something wrong on the initialization of the Particle System. |
|
That was not my question. The question was if the crash was happening on the Demos, not if your app was on the Play Store. Without steps to replicate, there's nothing I can do. |
I have integrated the lib into my app and I have the same issue too. Not sure what's going on and here is the stacktrace from Crashlytics
|
@smeet123 I probably figure out the reason for my case. I've been using a |
@raymondctc Thank you so much for the solution, I will check it once I get time. |
May not be the cause of the reported NPE, but I can see a data race in ParticleTimerTask.run():
The two lines should be inverted:
|
I am using com.plattysoft.leonids:LeonidsLib:1.3.1 version of this library and getting the following crashes from google play store :
java.lang.NullPointerException
! 1 at com.plattysoft.leonids.ParticleSystem.onUpdate(ParticleSystem.java:556)
2 at com.plattysoft.leonids.ParticleSystem.access$100(ParticleSystem.java:35)
3 at com.plattysoft.leonids.ParticleSystem$1.run(ParticleSystem.java:363)
4 at java.util.Timer$TimerImpl.run(Timer.java:284)
So can you please check it and resolve it?
The text was updated successfully, but these errors were encountered: