We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9efc9d2 commit 352e361Copy full SHA for 352e361
1 file changed
src/ifcparse/IfcUtil.cpp
@@ -231,6 +231,9 @@ AttributeValue IfcUtil::IfcBaseEntity::get(const std::string& name) const
231
}
232
233
aggregate_of_instance::ptr IfcUtil::IfcBaseEntity::get_inverse(const std::string& name) const {
234
+ if (file_ == nullptr) {
235
+ throw IfcParse::IfcException("Instance not added to file");
236
+ }
237
const std::vector<const IfcParse::inverse_attribute*> attrs = declaration().as_entity()->all_inverse_attributes();
238
std::vector<const IfcParse::inverse_attribute*>::const_iterator iter = attrs.begin();
239
for (; iter != attrs.end(); ++iter) {
0 commit comments