From: vsr Date: Mon, 25 Apr 2011 13:01:26 +0000 (+0000) Subject: Fix SIGSEGV raised in UnionList(), DifferenceList() and other functions if the GEOM... X-Git-Tag: V6_3_0b1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cafc4bab720cbd51234c44dd3128ef3b348a9749;p=modules%2Fgeom.git Fix SIGSEGV raised in UnionList(), DifferenceList() and other functions if the GEOM group becomes empty. --- 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