Salome HOME
23051: [CEA 1470] SMESH NetGen - Local refinement not computed and dumped properly
[plugins/netgenplugin.git] / src / NETGENPlugin / NETGENPlugin_Mesher.cxx
index 897a2cca3ee4625c67b5655e15dac4149c93b142..d06bbc277accf2a4d9c2d0c6242309b7a3f65769 100644 (file)
@@ -212,8 +212,10 @@ void NETGENPlugin_Mesher::SetDefaultParameters()
  *
  */
 //=============================================================================
+
 void SetLocalSize(TopoDS_Shape GeomShape, double LocalSize)
 {
+  if ( GeomShape.IsNull() ) return;
   TopAbs_ShapeEnum GeomType = GeomShape.ShapeType();
   if (GeomType == TopAbs_COMPOUND) {
     for (TopoDS_Iterator it (GeomShape); it.More(); it.Next()) {