From cafc4bab720cbd51234c44dd3128ef3b348a9749 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 25 Apr 2011 13:01:26 +0000 Subject: [PATCH] Fix SIGSEGV raised in UnionList(), DifferenceList() and other functions if the GEOM group becomes empty. --- src/GEOMImpl/GEOMImpl_IGroupOperations.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GEOMImpl/GEOMImpl_IGroupOperations.cxx b/src/GEOMImpl/GEOMImpl_IGroupOperations.cxx index 86ed5fbe7..224dda4aa 100644 --- a/src/GEOMImpl/GEOMImpl_IGroupOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IGroupOperations.cxx @@ -297,6 +297,7 @@ void GEOMImpl_IGroupOperations::UnionList (Handle(GEOM_Object) theGroup, Handle(GEOM_Object) anObj_i = Handle(GEOM_Object)::DownCast(theSubShapes->Value(i)); TopoDS_Shape aShape_i = anObj_i->GetValue(); + if ( aShape_i.IsNull() ) continue; TopAbs_ShapeEnum aType_i = aShape_i.ShapeType(); // 1. If aShape_i is sub-shape of aMainShape - add it -- 2.39.2