MPV: Fix for crash if there is no SMESH component created in the study

This commit is contained in:
bri 2013-02-08 11:04:28 +00:00
parent 73ddae8750
commit 47a8367d6d

View File

@ -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";