From: jfa Date: Thu, 10 Aug 2006 07:53:07 +0000 (+0000) Subject: Fix bug 12796: Warning missed for the bad file 'test18.med' X-Git-Tag: For_OCT_611~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=104ff7b2818ce4d0f8a38d840abd3e5c70190668;p=modules%2Fsmesh.git Fix bug 12796: Warning missed for the bad file 'test18.med' --- 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);