Skip to content

Commit e9ea3b1

Browse files
committed
null check in mitsuba loader ParserUtil
1 parent 40d4249 commit e9ea3b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbl/ext/MitsubaLoader/ParserUtil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void ParserManager::onEnd(const Context& ctx, const char* _el)
224224
if (!elements.empty())
225225
{
226226
IElement* parent = elements.top().first;
227-
if (!parent->processChildData(element.first, element.second))
227+
if (parent && !parent->processChildData(element.first, element.second))
228228
{
229229
if (element.first)
230230
killParseWithError(ctx,element.first->getLogName() + " could not processChildData with name: " + element.second);

0 commit comments

Comments
 (0)