0021884]: [CEA 679] SALOME crashes when using Netgen 2D without 1D algorithm

Stupid access to NULL object
This commit is contained in:
eap 2012-10-01 13:58:55 +00:00
parent c23203b921
commit 1943d6f613

View 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;