From: mzn Date: Fri, 24 Nov 2006 12:27:25 +0000 (+0000) Subject: Fix for bug PAL13948(Impossible to load VISU component in batch mode). X-Git-Tag: V3_2_3pre4~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bf1e55126c248a022aca32ed50dbbf903c31f8cc;p=modules%2Fkernel.git Fix for bug PAL13948(Impossible to load VISU component in batch mode). --- diff --git a/src/Container/Container_i.cxx b/src/Container/Container_i.cxx index 818c8a400..21091ea25 100644 --- a/src/Container/Container_i.cxx +++ b/src/Container/Container_i.cxx @@ -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);