Salome HOME
Fix bug 12796: Warning missed for the bad file 'test18.med'
authorjfa <jfa@opencascade.com>
Thu, 10 Aug 2006 07:53:07 +0000 (07:53 +0000)
committerjfa <jfa@opencascade.com>
Thu, 10 Aug 2006 07:53:07 +0000 (07:53 +0000)
src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx

index 5d42d94..f87bd3f 100644 (file)
@@ -130,9 +130,11 @@ DriverMED_R_SMESHDS_Mesh
 
         // Reading MED nodes to the corresponding SMDS structure
        //------------------------------------------------------
-      PNodeInfo aNodeInfo = aMed->GetPNodeInfo(aMeshInfo);
-       if(!aNodeInfo)
+        PNodeInfo aNodeInfo = aMed->GetPNodeInfo(aMeshInfo);
+       if (!aNodeInfo) {
+          aResult = DRS_FAIL;
          continue;
+        }
 
        PCoordHelper aCoordHelper = GetCoordHelper(aNodeInfo);