mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 11:20:21 +00:00
If an IFC file has an IFCRELASSOCIATESMATERIAL but did not supply an IFCMATERIAL, IfcConvert will crash. This commit prevents the crash, catches the exception and prints an error on the terminal
This commit is contained in:
@@ -266,11 +266,6 @@ class IFC_PARSE_API IfcFile {
|
||||
|
||||
int getTotalInverses(int instance_id);
|
||||
|
||||
template <typename T>
|
||||
typename T::list::ptr getInverse(int instance_id, int attribute_index) {
|
||||
return getInverse(instance_id, &T::Class(), attribute_index)->template as<T>();
|
||||
}
|
||||
|
||||
unsigned int FreshId() { return ++MaxId; }
|
||||
|
||||
unsigned int getMaxId() const { return MaxId; }
|
||||
|
||||
Reference in New Issue
Block a user