From: bri Date: Fri, 8 Feb 2013 11:04:28 +0000 (+0000) Subject: MPV: Fix for crash if there is no SMESH component created in the study X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR_siman_phase1;p=modules%2Fsmesh.git MPV: Fix for crash if there is no SMESH component created in the study --- diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index 30cb71cb9..702e46508 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -4950,6 +4950,9 @@ Engines::ListOfData* SMESH_Gen_i::getModifiedData(CORBA::Long studyId) SALOMEDS::Study_var aStudy = aStudyManager->GetStudyByID(studyId); SetCurrentStudy(aStudy); SALOMEDS::SComponent_var aComponent = aStudy->FindComponent("SMESH"); + + if (CORBA::is_nil(aComponent)) + return aResult._retn(); std::string aFullPath(Kernel_Utils::GetTmpFileName()); aFullPath += ".med";