PAL12239. Prevent from crash on mesh without nodes

This commit is contained in:
eap 2006-04-26 14:57:46 +00:00
parent 843df0f0f3
commit 10291d5e0d

View 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);