]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix SIGSEGV raised in UnionList(), DifferenceList() and other functions if the GEOM...
authorvsr <vsr@opencascade.com>
Mon, 25 Apr 2011 13:01:26 +0000 (13:01 +0000)
committervsr <vsr@opencascade.com>
Mon, 25 Apr 2011 13:01:26 +0000 (13:01 +0000)
src/GEOMImpl/GEOMImpl_IGroupOperations.cxx

index 86ed5fbe73b551895cb4e8f8cc451f5a5788e681..224dda4aafa8b890d2e8ca852dc2b205b3bd2e78 100644 (file)
@@ -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