]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021884]: [CEA 679] SALOME crashes when using Netgen 2D without 1D algorithm
authoreap <eap@opencascade.com>
Mon, 1 Oct 2012 13:58:55 +0000 (13:58 +0000)
committereap <eap@opencascade.com>
Mon, 1 Oct 2012 13:58:55 +0000 (13:58 +0000)
   Stupid access to NULL object

src/SMESH/SMESH_MesherHelper.cxx

index 742338eda1246e8f95fce993d0fe3801f667d9b4..661d8da8975e76d17bfb32c0a2f50234de7fbde1 100644 (file)
@@ -3475,7 +3475,7 @@ void SMESH_MesherHelper::FixQuadraticElements(SMESH_ComputeErrorPtr& error,
       h.ToFixNodeParameters(true);
     }
     //perf_print_all_meters(1);
-    if ( error->myName == EDITERR_NO_MEDIUM_ON_GEOM )
+    if ( error && error->myName == EDITERR_NO_MEDIUM_ON_GEOM )
       error->myComment = "during conversion to quadratic, "
         "some medium nodes were not placed on geometry to avoid distorting elements";
     return;