parse_xml can return nullptr

This commit is contained in:
Thomas Krijnen
2020-05-05 13:07:55 +02:00
parent 23f5c808e8
commit c9c2f76960
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -634,8 +634,10 @@ IFC_PARSE_API IfcParse::IfcFile* IfcParse::parse_ifcxml(const std::string& filen
}
}
state.file->parsing_complete() = true;
state.file->build_inverses();
if (state.file) {
state.file->parsing_complete() = true;
state.file->build_inverses();
}
return state.file;
}