mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
parse_xml can return nullptr
This commit is contained in:
@@ -948,7 +948,7 @@ bool init_input_file(const std::string& filename, IfcParse::IfcFile*& ifc_file,
|
||||
} else
|
||||
#endif
|
||||
ifc_file = new IfcParse::IfcFile(filename);
|
||||
if (!ifc_file->good()) {
|
||||
if (!ifc_file || !ifc_file->good()) {
|
||||
#endif
|
||||
Logger::Error("Unable to parse input file '" + filename + "'");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user