From 8c26037f84316355e88fd8a666f8824e88fcea76 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 17 Sep 2017 20:22:29 +0200 Subject: [PATCH] Fix null dereference --- src/ifcgeom/IfcGeomIterator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomIterator.h b/src/ifcgeom/IfcGeomIterator.h index 081a2136cf..7a83878130 100644 --- a/src/ifcgeom/IfcGeomIterator.h +++ b/src/ifcgeom/IfcGeomIterator.h @@ -604,7 +604,7 @@ namespace IfcGeom { // get the parent try { - parent_object = getObject(parent_object->parent_id()); + parent_object = getObject(ret->parent_id()); } catch (const std::exception& e) { Logger::Error(e); hasParent = false;