Check that root layer was found.
authorJohn Preston <johnprestonmail@gmail.com>
Sun, 1 Sep 2019 07:37:11 +0000 (10:37 +0300)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 22 Sep 2019 21:53:45 +0000 (06:53 +0900)
src/lottie/lottieparser.cpp

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