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

crash problem #2050

Closed
dilkw opened this issue Apr 4, 2022 · 6 comments · Fixed by #2061
Closed

crash problem #2050

dilkw opened this issue Apr 4, 2022 · 6 comments · Fixed by #2061

Comments

@dilkw
Copy link

dilkw commented Apr 4, 2022

Hello, my app crashed suddenly, a total of 40 crashes, affecting 40 users, I hope to get your help, the crash information is as follows:

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.airbnb.lottie.v.a.h()' on a null object reference
at com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation.getInterpolatedCurrentKeyframeProgress(BaseKeyframeAnimation.java:104)
at com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation.getValue(BaseKeyframeAnimation.java:128)
at com.airbnb.lottie.model.layer.BaseLayer.setupInOutAnimations(BaseLayer.java:157)
at com.airbnb.lottie.model.layer.BaseLayer.(BaseLayer.java:122)
at com.airbnb.lottie.model.layer.ShapeLayer.(ShapeLayer.java:21)
at com.airbnb.lottie.model.layer.BaseLayer.forModel(BaseLayer.java:46)
at com.airbnb.lottie.model.layer.CompositionLayer.(CompositionLayer.java:56)
at com.airbnb.lottie.LottieDrawable.buildCompositionLayer(LottieDrawable.java:290)
at com.airbnb.lottie.LottieDrawable.setComposition(LottieDrawable.java:216)
at com.airbnb.lottie.LottieAnimationView.setComposition(LottieAnimationView.java:484)
at com.airbnb.lottie.LottieAnimationView$2.onResult(LottieAnimationView.java:80)
at com.airbnb.lottie.LottieAnimationView$2.onResult(LottieAnimationView.java:78)
at com.airbnb.lottie.LottieTask.notifySuccessListeners(LottieTask.java:144)
at com.airbnb.lottie.LottieTask.access$100(LottieTask.java:27)
at com.airbnb.lottie.LottieTask$1.run(LottieTask.java:131)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7359)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)

@gpeal
Copy link
Collaborator

gpeal commented Apr 4, 2022

@dilkw Are there any patterns such as Android OS versions?

@dilkw
Copy link
Author

dilkw commented Apr 4, 2022

@dilkw Are there any patterns such as Android OS versions?

Android os: 10
Device: Xiaomi

@gpeal
Copy link
Collaborator

gpeal commented Apr 4, 2022

@dilkw 100% Android 10 Xiaomi?

@dilkw
Copy link
Author

dilkw commented Apr 4, 2022

@dilkw 100% Android 10 Xiaomi?

yes

@dilkw
Copy link
Author

dilkw commented Apr 14, 2022

Hi, how should I solve this problem?

@mitulbharatchandra
Copy link

Hi there, I also started getting same crash.
Caused by java.lang.NullPointerException
Attempt to invoke virtual method 'void com.airbnb.lottie.LottieAnimationView.h()' on a null object reference

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

Successfully merging a pull request may close this issue.

3 participants