From: eap Date: Mon, 1 Oct 2012 13:58:55 +0000 (+0000) Subject: 0021884]: [CEA 679] SALOME crashes when using Netgen 2D without 1D algorithm X-Git-Tag: V6_6_0a1~70 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1943d6f613da78742ea6e5dc064ce7cabc5300bd;p=modules%2Fsmesh.git 0021884]: [CEA 679] SALOME crashes when using Netgen 2D without 1D algorithm Stupid access to NULL object --- diff --git a/src/SMESH/SMESH_MesherHelper.cxx b/src/SMESH/SMESH_MesherHelper.cxx index 742338eda..661d8da89 100644 --- a/src/SMESH/SMESH_MesherHelper.cxx +++ b/src/SMESH/SMESH_MesherHelper.cxx @@ -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;