From 9b030ac2747942fd074b5ac2b41a72363b95b35a Mon Sep 17 00:00:00 2001 From: Nicholas Guriev Date: Tue, 4 Jan 2022 20:13:43 +0300 Subject: [PATCH] Ignore animations with objects of unspecified type Change-Id: Idc20b0b41f293d092cfd6b9dff9764c9703bc285 Signed-off-by: jykeon --- src/lottie/lottieparser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lottie/lottieparser.cpp b/src/lottie/lottieparser.cpp index ebaaf3e..83be17e 100644 --- a/src/lottie/lottieparser.cpp +++ b/src/lottie/lottieparser.cpp @@ -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")) { -- 2.34.1