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 5d42d94b779ecd70a7e784ff99daa8a0597d2541..f87bd3f075bdb6ea0fd6bc2ae5d39ba2809ed5a7 100644 (file)
@@ -130,9 +130,11 @@ DriverMED_R_SMESHDS_Mesh
 
         // Reading MED nodes to the corresponding SMDS structure
        //------------------------------------------------------
 
         // 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;
          continue;
+        }
 
        PCoordHelper aCoordHelper = GetCoordHelper(aNodeInfo);
 
 
        PCoordHelper aCoordHelper = GetCoordHelper(aNodeInfo);