Check that root layer was found.

This commit is contained in:
John Preston 2019-09-01 10:37:11 +03:00
parent ba6b92f341
commit 6e8b3ae8c2

View File

@ -598,7 +598,7 @@ void LottieParserImpl::parseComposition()
}
}
if (comp->mVersion.empty()) {
if (comp->mVersion.empty() || !comp->mRootLayer) {
// don't have a valid bodymovin header
return;
}