mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 07:20: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
@ -4951,6 +4951,9 @@ Engines::ListOfData* SMESH_Gen_i::getModifiedData(CORBA::Long 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";
|
||||||
DriverMED_W_SMESHDS_Mesh aWriter;
|
DriverMED_W_SMESHDS_Mesh aWriter;
|
||||||
|
Loading…
Reference in New Issue
Block a user