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

NPE in getMatrix #1945

Closed
lsuski opened this issue Nov 21, 2021 · 0 comments · Fixed by #1955
Closed

NPE in getMatrix #1945

lsuski opened this issue Nov 21, 2021 · 0 comments · Fixed by #1955

Comments

@lsuski
Copy link

lsuski commented Nov 21, 2021

Describe the bug

Lottie 4.2.1
this is rare crash - I had it once.

java.lang.NullPointerException: Attempt to read from field 'float android.graphics.PointF.x' on a null object reference
    at com.airbnb.lottie.animation.keyframe.TransformKeyframeAnimation.getMatrix(TransformKeyframeAnimation.java:172)
    at com.airbnb.lottie.model.layer.BaseLayer.getBounds(BaseLayer.java:217)
    at com.airbnb.lottie.model.layer.CompositionLayer.getBounds(CompositionLayer.java:128)
    at com.airbnb.lottie.model.layer.CompositionLayer.getBounds(CompositionLayer.java:131)

It looks like positionValue is null so additional null check is needed besides this added in #1917

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.

1 participant