lottie-android: Crash in Lottie with NPE in BaseStrokeContent
Environment: Lottie: 2.5.0 Android OS: 4.3.1 Device: Galaxy Nexus (Emulator)
Steps Just load the load the animation: https://www.lottiefiles.com/download/1830
E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NullPointerException
at com.airbnb.lottie.animation.content.BaseStrokeContent.<init>(BaseStrokeContent.java:61)
at com.airbnb.lottie.animation.content.StrokeContent.<init>(StrokeContent.java:25)
at com.airbnb.lottie.model.content.ShapeStroke.toContent(ShapeStroke.java:77)
at com.airbnb.lottie.animation.content.ContentGroup.contentsFromModels(ContentGroup.java:30)
at com.airbnb.lottie.animation.content.ContentGroup.<init>(ContentGroup.java:60)
at com.airbnb.lottie.model.content.ShapeGroup.toContent(ShapeGroup.java:29)
at com.airbnb.lottie.animation.content.ContentGroup.contentsFromModels(ContentGroup.java:30)
at com.airbnb.lottie.animation.content.ContentGroup.<init>(ContentGroup.java:60)
at com.airbnb.lottie.model.layer.ShapeLayer.<init>(ShapeLayer.java:25)
at com.airbnb.lottie.model.layer.BaseLayer.forModel(BaseLayer.java:44)
at com.airbnb.lottie.model.layer.CompositionLayer.<init>(CompositionLayer.java:52)
at com.airbnb.lottie.LottieDrawable.buildCompositionLayer(LottieDrawable.java:225)
at com.airbnb.lottie.LottieDrawable.setComposition(LottieDrawable.java:187)
at com.airbnb.lottie.LottieAnimationView.setComposition(LottieAnimationView.java:468)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17
Commits related to this issue
- init project to reproduce https://github.com/airbnb/lottie-android/issues/759 — committed to HunkD/LottieCrash by deleted user 6 years ago
@gpeal https://github.com/HunkD/LottieCrash run this project on Android 4.4 x86 emulator will trigger crash