Ignore animations with objects of unspecified type 19/273519/1
authorNicholas Guriev <nicholas@guriev.su>
Tue, 4 Jan 2022 17:13:43 +0000 (20:13 +0300)
committerjykeon <jykeon@samsung.com>
Thu, 7 Apr 2022 01:56:58 +0000 (10:56 +0900)
Change-Id: Idc20b0b41f293d092cfd6b9dff9764c9703bc285
Signed-off-by: jykeon <jykeon@samsung.com>
src/lottie/lottieparser.cpp

index ebaaf3e99510e33103e95c3834e14e52d9542d67..83be17e3930d6e5dfff33358d89394c856d1c1b0 100644 (file)
@@ -1140,6 +1140,10 @@ void LottieParserImpl::parseShapesAttr(model::Layer *layer)
 model::Object *LottieParserImpl::parseObjectTypeAttr()
 {
     const char *type = GetString();
+    if (!type) {
+        vWarning << "No object type specified";
+        return nullptr;
+    }
     if (0 == strcmp(type, "gr")) {
         return parseGroupObject();
     } else if (0 == strcmp(type, "rc")) {