mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 11:40:33 +05:00
MPV: Fix for crash if there is no SMESH component created in the study
This commit is contained in:
parent
73ddae8750
commit
47a8367d6d
@ -4950,6 +4950,9 @@ Engines::ListOfData* SMESH_Gen_i::getModifiedData(CORBA::Long studyId)
|
|||||||
SALOMEDS::Study_var aStudy = aStudyManager->GetStudyByID(studyId);
|
SALOMEDS::Study_var aStudy = aStudyManager->GetStudyByID(studyId);
|
||||||
SetCurrentStudy(aStudy);
|
SetCurrentStudy(aStudy);
|
||||||
SALOMEDS::SComponent_var aComponent = aStudy->FindComponent("SMESH");
|
SALOMEDS::SComponent_var aComponent = aStudy->FindComponent("SMESH");
|
||||||
|
|
||||||
|
if (CORBA::is_nil(aComponent))
|
||||||
|
return aResult._retn();
|
||||||
|
|
||||||
std::string aFullPath(Kernel_Utils::GetTmpFileName());
|
std::string aFullPath(Kernel_Utils::GetTmpFileName());
|
||||||
aFullPath += ".med";
|
aFullPath += ".med";
|
||||||
|
Loading…
Reference in New Issue
Block a user