projects
/
platform
/
core
/
uifw
/
lottie-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b35730f
)
Ignore animations with objects of unspecified type
19/273519/1
author
Nicholas Guriev
<nicholas@guriev.su>
Tue, 4 Jan 2022 17:13:43 +0000
(20:13 +0300)
committer
jykeon
<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
patch
|
blob
|
history
diff --git
a/src/lottie/lottieparser.cpp
b/src/lottie/lottieparser.cpp
index ebaaf3e99510e33103e95c3834e14e52d9542d67..83be17e3930d6e5dfff33358d89394c856d1c1b0 100644
(file)
--- 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")) {