Salome HOME
check if module "GEOM" is found
[modules/smesh.git] / src / SMESH_I / SMESH_Gen_i.cxx
index 3d36ed3423e45f94afbafd1775fcde3d37b0e84a..fcbf895c030469f7dab23623117f49cbc793dac0 100644 (file)
@@ -421,7 +421,8 @@ void SMESH_Gen_i::SetCurrentStudy( SALOMEDS::Study_ptr theStudy )
   }
 
   SALOMEDS::StudyBuilder_var aStudyBuilder = myCurrentStudy->NewBuilder(); 
-  aStudyBuilder->LoadWith( myCurrentStudy->FindComponent( "GEOM" ), GetGeomEngine() );
+  if( !myCurrentStudy->FindComponent( "GEOM" )->_is_nil() )
+    aStudyBuilder->LoadWith( myCurrentStudy->FindComponent( "GEOM" ), GetGeomEngine() );
 
   // set current study for geom engine
   //if ( !CORBA::is_nil( GetGeomEngine() ) )