]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PAL9103 : if engine cannot start, the unknown exception is raised
authorasl <asl@opencascade.com>
Fri, 3 Mar 2006 11:07:22 +0000 (11:07 +0000)
committerasl <asl@opencascade.com>
Fri, 3 Mar 2006 11:07:22 +0000 (11:07 +0000)
src/Container/Container_i.cxx

index 48b3ac787f6d87481e090fd2f0a8d2116819ebf8..685e958d1fb839a966e1a57ea939153952590acc 100644 (file)
@@ -417,8 +417,11 @@ Engines_Container_i::create_component_instance(const char*genericRegisterName,
       SCRUTE(iors);
       Py_RELEASE_NEW_THREAD;
   
-      CORBA::Object_var obj = _orb->string_to_object(iors.c_str());
-      iobject = Engines::Component::_narrow( obj ) ;
+      if( iors!="" )
+      {
+       CORBA::Object_var obj = _orb->string_to_object(iors.c_str());
+       iobject = Engines::Component::_narrow( obj ) ;
+      }
       return iobject._retn();
     }