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 8264860023
commit 9baa15ecdb

View file

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