mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Check that root layer was found.
This commit is contained in:
parent
ba6b92f341
commit
6e8b3ae8c2
@ -598,7 +598,7 @@ void LottieParserImpl::parseComposition()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (comp->mVersion.empty()) {
|
if (comp->mVersion.empty() || !comp->mRootLayer) {
|
||||||
// don't have a valid bodymovin header
|
// don't have a valid bodymovin header
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user