From bf1e55126c248a022aca32ed50dbbf903c31f8cc Mon Sep 17 00:00:00 2001 From: mzn Date: Fri, 24 Nov 2006 12:27:25 +0000 Subject: [PATCH] Fix for bug PAL13948(Impossible to load VISU component in batch mode). --- src/Container/Container_i.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.2