From: Nicholas Guriev Date: Tue, 4 Jan 2022 17:13:43 +0000 (+0300) Subject: Ignore animations with objects of unspecified type X-Git-Tag: submit/tizen/20220408.011942~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b030ac2747942fd074b5ac2b41a72363b95b35a;p=platform%2Fcore%2Fuifw%2Flottie-player.git Ignore animations with objects of unspecified type Change-Id: Idc20b0b41f293d092cfd6b9dff9764c9703bc285 Signed-off-by: jykeon --- 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")) {