]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix for bug PAL13948(Impossible to load VISU component in batch mode).
authormzn <mzn@opencascade.com>
Fri, 24 Nov 2006 12:27:25 +0000 (12:27 +0000)
committermzn <mzn@opencascade.com>
Fri, 24 Nov 2006 12:27:25 +0000 (12:27 +0000)
src/Container/Container_i.cxx

index 818c8a4009af765371cb17d730877481d6eb0aee..21091ea25d776733a7575a9c4430a31d4801dc10 100644 (file)
@@ -806,7 +806,9 @@ Engines_Container_i::createInstance(string genericRegisterName,
       PortableServer::ObjectId *id ; //not owner, do not delete (nore use var)
       id = (Component_factory) ( _orb, _poa, _id, instanceName.c_str(),
                                 aGenRegisterName.c_str() ) ;
-
+      if (id == NULL)
+       return iobject._retn();
+      
       // --- get reference & servant from id
 
       CORBA::Object_var obj = _poa->id_to_reference(*id);