mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
lottie/builder: fix crash by null reference
This commit is contained in:
parent
32cd145cf1
commit
914144bb5a
1 changed files with 3 additions and 1 deletions
|
@ -912,7 +912,9 @@ void LottieParser::parseAssets()
|
|||
{
|
||||
enterArray();
|
||||
while (nextArrayValue()) {
|
||||
comp->assets.push(parseAsset());
|
||||
auto asset = parseAsset();
|
||||
if (asset) comp->assets.push(asset);
|
||||
else TVGERR("LOTTIE", "Invalid Asset!");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue