Salome HOME
22833: [CEA 1346] to extrude a group of faces following the normal of each face
authoreap <eap@opencascade.com>
Wed, 28 Jan 2015 14:57:23 +0000 (17:57 +0300)
committereap <eap@opencascade.com>
Wed, 28 Jan 2015 14:57:23 +0000 (17:57 +0300)
Fix SIGSEGV when no groups created

src/SMESH_I/SMESH_MeshEditor_i.cxx

index 39a9d25..a753f0b 100644 (file)
@@ -3126,7 +3126,7 @@ SMESH_MeshEditor_i::ExtrusionByNormal(SMESH::SMESH_IDSource_ptr object,
                 << ", " << dim
                 << " )";
   }
-  return aGroups;
+  return aGroups ? aGroups : new SMESH::ListOfGroups;
 }
 
 //=======================================================================