From 97948ceb8ed81f516f4abc99623409708effb3fe Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 2 May 2006 12:09:55 +0000 Subject: [PATCH] Fix for Bug12202 TC: CRASH after import of "test18.med" file in MESH module. --- src/CONVERTOR/VISU_MedConvertor.cxx | 42 +++++++++++++++-------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index a83cb552..9f678c4e 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -1112,36 +1112,38 @@ VISU_MedConvertor aMesh->myMeshInfo = aMeshInfo; aMesh->myNamedPointCoords(new TMEDNamedPointCoords()); + INITMSG(MYDEBUG,"aMeshName = '"<GetPNodeInfo(aMeshInfo); - - MED::TEntityInfo anEntityInfo = aMed->GetEntityInfo(aMeshInfo); + if(MED::PNodeInfo aNodeInfo = aMed->GetPNodeInfo(aMeshInfo)){ + MED::TEntityInfo anEntityInfo = aMed->GetEntityInfo(aMeshInfo); - aMesh->myNbPoints = aNodeInfo->GetNbElem(); - aMesh->myEntityInfo = anEntityInfo; + aMesh->myNbPoints = aNodeInfo->GetNbElem(); + aMesh->myEntityInfo = anEntityInfo; - INITMSG(MYDEBUG,"aMeshName = '"<GetPGrilleInfo(aMeshInfo); -- 2.39.2