Null pointer crash
See original GitHub issueNull pointer exception crash reported on google play, cant reproduce it my self. Crash log is from the latest 3.7.0 ver.
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.Rect f.b.a.d.b()' on a null object reference at com.airbnb.lottie.LottieDrawable.getMaxScale(LottieDrawable.java:1208) at com.airbnb.lottie.LottieDrawable.drawWithOriginalAspectRatio(LottieDrawable.java:1263) at com.airbnb.lottie.LottieDrawable.drawInternal(LottieDrawable.java:407) at com.airbnb.lottie.LottieDrawable.draw(LottieDrawable.java:397) at android.widget.ImageView.onDraw(ImageView.java:1505) at android.view.View.draw(View.java:21618) at android.view.View.updateDisplayListIfDirty(View.java:20483) at android.view.View.draw(View.java:21350) at android.view.ViewGroup.drawChild(ViewGroup.java:4446) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4205) at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1975) at android.view.View.draw(View.java:21621) at android.view.View.updateDisplayListIfDirty(View.java:20483) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4428) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4401) at android.view.View.updateDisplayListIfDirty(View.java:20441) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:584) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:590) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:668) at android.view.ViewRootImpl.draw(ViewRootImpl.java:3840) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3648) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2954) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1857) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8089) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1057) at android.view.Choreographer.doCallbacks(Choreographer.java:875) at android.view.Choreographer.doFrame(Choreographer.java:776) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1042) at android.os.Handler.handleCallback(Handler.java:888) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:213) at android.app.ActivityThread.main(ActivityThread.java:8178) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:11
- Comments:10
Top GitHub Comments
Null pointer exception crash (Ver. 3.7.0) BaseKeyframeAnimation :: getValue() -> returns null
Fatal Exception: 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.draw(BaseLayer.java:245) at com.airbnb.lottie.model.layer.CompositionLayer.drawLayer(CompositionLayer.java:120) at com.airbnb.lottie.model.layer.BaseLayer.draw(BaseLayer.java:247) at com.airbnb.lottie.LottieDrawable.drawWithOriginalAspectRatio(LottieDrawable.java:1294) at com.airbnb.lottie.LottieDrawable.drawInternal(LottieDrawable.java:407) at com.airbnb.lottie.LottieDrawable.draw(LottieDrawable.java:397) at android.widget.ImageView.onDraw(ImageView.java:1436) at android.view.View.draw(View.java:22350) at android.view.View.updateDisplayListIfDirty(View.java:21226) at android.view.View.draw(View.java:22081) at android.view.ViewGroup.drawChild(ViewGroup.java:4516) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4277) at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1994) at android.view.View.updateDisplayListIfDirty(View.java:21217) at android.view.View.draw(View.java:22081) at android.view.ViewGroup.drawChild(ViewGroup.java:4516) at androidx.recyclerview.widget.RecyclerView.drawChild(RecyclerView.java:5204) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4277) at android.view.View.draw(View.java:22353) at androidx.recyclerview.widget.RecyclerView.draw(RecyclerView.java:4603) at android.view.View.updateDisplayListIfDirty(View.java:21226) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4500) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4473) at android.view.View.updateDisplayListIfDirty(View.java:21186) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4500) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4473) at android.view.View.updateDisplayListIfDirty(View.java:21186) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4500) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4473) at android.view.View.updateDisplayListIfDirty(View.java:21186) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4500) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4473) at android.view.View.updateDisplayListIfDirty(View.java:21186) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4500) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4473) at android.view.View.updateDisplayListIfDirty(View.java:21186) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4500) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4473) at android.view.View.updateDisplayListIfDirty(View.java:21186) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4500) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4473) at android.view.View.updateDisplayListIfDirty(View.java:21186) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4500) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4473) at android.view.View.updateDisplayListIfDirty(View.java:21186) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:559) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:565) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:642) at android.view.ViewRootImpl.draw(ViewRootImpl.java:4106) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3833) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3104) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1948) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8177) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:972) at android.view.Choreographer.doCallbacks(Choreographer.java:796) at android.view.Choreographer.doFrame(Choreographer.java:731) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:957) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7664) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Hello. We found a similar crash (3.7.0 ver.). It was not possible to reproduce, however, in firebase analytics there are about 20 such cases.
Fatal Exception: java.lang.NullPointerException Attempt to read from field ‘float android.graphics.PointF.x’ on a null object reference