From 1943d6f613da78742ea6e5dc064ce7cabc5300bd Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 1 Oct 2012 13:58:55 +0000 Subject: [PATCH] 0021884]: [CEA 679] SALOME crashes when using Netgen 2D without 1D algorithm Stupid access to NULL object --- src/SMESH/SMESH_MesherHelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2