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

This commit is contained in:
bri 2013-02-08 11:00:16 +00:00
parent 53a40b72e7
commit 3331817489

View File

@ -2630,6 +2630,8 @@ Engines::ListOfData* GEOM_Gen_i::getModifiedData(CORBA::Long studyId)
SALOMEDS::StudyManager_var aStudyManager = SALOMEDS::StudyManager::_narrow( aSMObject );
SALOMEDS::Study_var aStudy = aStudyManager->GetStudyByID( studyId );
SALOMEDS::SComponent_var aComponent = aStudy->FindComponent("GEOM");
if (CORBA::is_nil(aComponent))
return aResult._retn();
SALOMEDS::ChildIterator_var anIter = aStudy->NewChildIterator(aComponent); // check only published shapes
TopoDS_Compound aResultComp;
BRep_Builder aBB;