diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp
index e7698fabdd..10c3e533d7 100644
--- a/src/ifcgeom/IfcGeomFunctions.cpp
+++ b/src/ifcgeom/IfcGeomFunctions.cpp
@@ -1639,7 +1639,12 @@ IfcGeom::BRepElement
* IfcGeom::Kernel::create_brep_for_representation_and
if (rel->as()) {
auto pdef = rel->as()->RelatingPropertyDefinition();
if (pdef->as()) {
- if (pdef->as()->OwnerHistory()->OwningApplication()->ApplicationDeveloper()->Name() == "IfcOpenShell") {
+ std::string organization_name;
+ try {
+ // A couple of files are not according to the schema here.
+ organization_name = pdef->as()->OwnerHistory()->OwningApplication()->ApplicationDeveloper()->Name();
+ } catch (...) {}
+ if (organization_name == "IfcOpenShell") {
auto qs = pdef->as()->Quantities();
for (auto& q : *qs) {
if (q->as() && q->Name() == "Total Surface Area") {