airbnb / lottie-android

Render After Effects animations natively on Android and iOS, Web, and React Native
http://airbnb.io/lottie/
Apache License 2.0
34.96k stars 5.4k forks source link

Fix a NPE in ColorKeyframeAnimation #2407

Closed gpeal closed 10 months ago

gpeal commented 10 months ago

It is not clear to me why or how this would happen. endFrame is technically nullable because of the order that parsing happens but it should be non-null by the time parsing finishes. This should be safe enough to add to fix this NPE though.

Fixes #2361

github-actions[bot] commented 10 months ago

Snapshot Tests API 23: Report Diff API 31: Report Diff