]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
protect from SIGSEGV if no face elements are built on a geom face
authoreap <eap@opencascade.com>
Tue, 22 Apr 2008 16:54:31 +0000 (16:54 +0000)
committereap <eap@opencascade.com>
Tue, 22 Apr 2008 16:54:31 +0000 (16:54 +0000)
src/GHS3DPlugin_GHS3D.cxx

index c62bad9d2871568ae7286ba29cfec2d9407884a3..eda1b51410495472142951c29d82fb7ea0979c17 100644 (file)
@@ -268,6 +268,7 @@ static bool writeFaces (ofstream &            theFile,
       aShape      = tabShape[i];
       shapeID     = tabID[i];
       theSubMesh  = theMesh->MeshElements( aShape );
+      if ( !theSubMesh ) continue;
       itOnSubMesh = theSubMesh->GetElements();
       while ( itOnSubMesh->more() ) {
         aFace   = itOnSubMesh->next();