]> SALOME platform Git repositories - modules/smesh.git/commitdiff
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 39a9d25d6b2de158a2fd6682eaf690686e85b0e6..a753f0b59b70cf5b6e1613c7d8caae6d40272426 100644 (file)
@@ -3126,7 +3126,7 @@ SMESH_MeshEditor_i::ExtrusionByNormal(SMESH::SMESH_IDSource_ptr object,
                 << ", " << dim
                 << " )";
   }
-  return aGroups;
+  return aGroups ? aGroups : new SMESH::ListOfGroups;
 }
 
 //=======================================================================