Skip to content

Commit d1636c7

Browse files
mymedia2smohantty
authored andcommitted
Ignore animations with objects of unspecified type
1 parent f3eed9a commit d1636c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lottie/lottieparser.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,10 @@ void LottieParserImpl::parseShapesAttr(model::Layer *layer)
11401140
model::Object *LottieParserImpl::parseObjectTypeAttr()
11411141
{
11421142
const char *type = GetString();
1143+
if (!type) {
1144+
vWarning << "No object type specified";
1145+
return nullptr;
1146+
}
11431147
if (0 == strcmp(type, "gr")) {
11441148
return parseGroupObject();
11451149
} else if (0 == strcmp(type, "rc")) {

0 commit comments

Comments
 (0)