Salome HOME
PAL12239. Prevent from crash on mesh without nodes
[modules/smesh.git] / src / DriverMED / DriverMED_R_SMESHDS_Mesh.cxx
index 49c645f47a23a09f89e2cce8f55c93330cc4f70b..6952acfd7908478714ed51417381ea1a2194066f 100644 (file)
@@ -124,6 +124,8 @@ DriverMED_R_SMESHDS_Mesh
         // Reading MED nodes to the corresponding SMDS structure
        //------------------------------------------------------
        PNodeInfo aNodeInfo = aMed->GetPNodeInfo(aMeshInfo);
+        if ( !aNodeInfo )
+          return DRS_FAIL;
 
        PCoordHelper aCoordHelper = GetCoordHelper(aNodeInfo);