From 47a8367d6d5e83919d0fc7199d639e552a77c2dc Mon Sep 17 00:00:00 2001 From: bri Date: Fri, 8 Feb 2013 11:04:28 +0000 Subject: [PATCH] MPV: Fix for crash if there is no SMESH component created in the study --- src/SMESH_I/SMESH_Gen_i.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index 30cb71cb9..702e46508 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -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"; -- 2.39.2