lottie/parser: fixed a crash when lottie resource has empty path data.

Change-Id: I83d04fa6a1034f71e8cf9b6468b192b56a4c8185
This commit is contained in:
subhransu mohanty 2018-09-14 13:41:56 +09:00
parent 7ff9061eae
commit 829533e47c
2 changed files with 4 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -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