From 9de173dd3bad1707d6c273cc94dd34758addab44 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 6 May 2024 12:00:00 +0200 Subject: [PATCH] #4605 fix segfault in absence of profile placement --- src/ifcgeom/profile_helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/profile_helper.cpp b/src/ifcgeom/profile_helper.cpp index b31689d498..477b51430c 100644 --- a/src/ifcgeom/profile_helper.cpp +++ b/src/ifcgeom/profile_helper.cpp @@ -99,7 +99,7 @@ taxonomy::loop::ptr ifcopenshell::geometry::profile_helper(const taxonomy::matri } */ - const bool has_position = !m4->is_identity(); + const bool has_position = m4 && !m4->is_identity(); // @todo precision