mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
lottie/parser: fixed a crash when lottie resource has empty path data.
Change-Id: I83d04fa6a1034f71e8cf9b6468b192b56a4c8185
This commit is contained in:
parent
7ff9061eae
commit
829533e47c
1
example/resource/night_own.json
Normal file
1
example/resource/night_own.json
Normal file
File diff suppressed because one or more lines are too long
@ -1602,6 +1602,9 @@ void LottieParserImpl::getValue(LottieShapeData &obj)
|
||||
// exit properly from the array
|
||||
if (arrayWrapper) NextArrayValue();
|
||||
|
||||
// shape data could be empty.
|
||||
if (inPoint.empty() || outPoint.empty() || vertices.empty()) return;
|
||||
|
||||
/*
|
||||
* Convert the AE shape format to
|
||||
* list of bazier curves
|
||||
|
Loading…
x
Reference in New Issue
Block a user