From 6e8b3ae8c26ce8188291c8083af80f0d3b5176f1 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 1 Sep 2019 10:37:11 +0300 Subject: [PATCH] Check that root layer was found. --- src/lottie/lottieparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lottie/lottieparser.cpp b/src/lottie/lottieparser.cpp index 91fea5e68d..c5d766451f 100644 --- a/src/lottie/lottieparser.cpp +++ b/src/lottie/lottieparser.cpp @@ -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; }