lottie/builder: fix crash by null reference

This commit is contained in:
Jinny You 2023-12-07 17:06:48 +09:00 committed by Hermet Park
parent 32cd145cf1
commit 914144bb5a

View file

@ -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!");
}
}