mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
parse_xml can return nullptr
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user