Merge pull request #4328 from assimp/kimkulling-x3d_fix_nullptr_exception
Fix nullptr-dereferencingpull/4318/head^2
commit
b40d9abdb9
|
@ -264,6 +264,9 @@ void X3DImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSy
|
|||
//search for root node element
|
||||
|
||||
mNodeElementCur = NodeElement_List.front();
|
||||
if (mNodeElementCur == nullptr) {
|
||||
return;
|
||||
}
|
||||
while (mNodeElementCur->Parent != nullptr) {
|
||||
mNodeElementCur = mNodeElementCur->Parent;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue