From 104ff7b2818ce4d0f8a38d840abd3e5c70190668 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 10 Aug 2006 07:53:07 +0000 Subject: [PATCH] Fix bug 12796: Warning missed for the bad file 'test18.med' --- src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx b/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx index 5d42d94b7..f87bd3f07 100644 --- a/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx +++ b/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx @@ -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); -- 2.39.2