]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
MPV: Fix for crash if there is no SMESH component created in the study BR_siman_phase1
authorbri <bri@opencascade.com>
Fri, 8 Feb 2013 11:04:28 +0000 (11:04 +0000)
committerbri <bri@opencascade.com>
Fri, 8 Feb 2013 11:04:28 +0000 (11:04 +0000)
src/SMESH_I/SMESH_Gen_i.cxx

index 30cb71cb9717692353d80785a346ba052b2147e2..702e465086e92115a6802030301cf77d27fdd6de 100644 (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";