Salome HOME
0053062: Hang-up in Dump Study in case of some module which data is present in study...
[modules/gui.git] / src / SalomeApp / SalomeApp_Engine_i.cxx
index 9b58f1e36c69086a4d3e1cbfca4215f66b0569e2..40563d9391e8ea8e8a644c281933e88f2f17c333 100644 (file)
@@ -347,6 +347,9 @@ CORBA::Object_ptr SalomeApp_Engine_i::EngineForComponent( const char* theCompone
   if ( !theComponentName || !strlen( theComponentName ) )
     return anEngine._retn();
 
+  if ( SalomeApp_Application::moduleTitle( theComponentName ).isEmpty() )
+    return anEngine._retn();
+
   std::string aPath( "/SalomeAppEngine/" );
   aPath += theComponentName;
   anEngine = namingService()->Resolve( aPath.c_str() );