From 10291d5e0d4462d6945e29b8c8f2ee3f88f45880 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 26 Apr 2006 14:57:46 +0000 Subject: [PATCH] PAL12239. Prevent from crash on mesh without nodes --- src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx b/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx index 49c645f47..6952acfd7 100644 --- a/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx +++ b/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx @@ -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); -- 2.39.2