summaryrefslogtreecommitdiff
path: root/TAO/tao/RTCORBA
diff options
context:
space:
mode:
authorvzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-02-07 10:39:04 +0000
committervzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-02-07 10:39:04 +0000
commita4654ffd195012231adba586cdad198bc66f9d1b (patch)
tree8b2b9b475d85f3a20f4d23ac47bebaabec10c902 /TAO/tao/RTCORBA
parent15c082cf362505f08ddb13b5dda6de4d1a031d3f (diff)
downloadATCD-a4654ffd195012231adba586cdad198bc66f9d1b.tar.gz
ChangeLogTag: Thu Feb 7 10:33:29 UTC 2008 Vladimir Zykov <vladimir.zykov@prismtech.com>
Diffstat (limited to 'TAO/tao/RTCORBA')
-rw-r--r--TAO/tao/RTCORBA/RT_ORBInitializer.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/TAO/tao/RTCORBA/RT_ORBInitializer.cpp b/TAO/tao/RTCORBA/RT_ORBInitializer.cpp
index 34499ba7575..96f21a8e5e9 100644
--- a/TAO/tao/RTCORBA/RT_ORBInitializer.cpp
+++ b/TAO/tao/RTCORBA/RT_ORBInitializer.cpp
@@ -74,6 +74,18 @@ TAO_RT_ORBInitializer::pre_init (PortableInterceptor::ORBInitInfo_ptr info)
// orb_core() TAO extension.
TAO_ORBInitInfo_var tao_info = TAO_ORBInitInfo::_narrow (info);
+ if (CORBA::is_nil (tao_info.in ()))
+ {
+ if (TAO_debug_level > 0)
+ ACE_ERROR ((LM_ERROR,
+ "(%P|%t) TAO_RT_ORBInitializer::pre_init:\n"
+ "(%P|%t) Unable to narrow "
+ "\"PortableInterceptor::ORBInitInfo_ptr\" to\n"
+ "(%P|%t) \"TAO_ORBInitInfo *.\"\n"));
+
+ throw ::CORBA::INTERNAL ();
+ }
+
// Set the name of the Protocol_Hooks to be RT_Protocols_Hooks.
tao_info->orb_core ()->orb_params ()->protocols_hooks_name ("RT_Protocols_Hooks");
ACE_Service_Config::process_directive (ace_svc_desc_TAO_RT_Protocols_Hooks);
@@ -161,18 +173,6 @@ TAO_RT_ORBInitializer::pre_init (PortableInterceptor::ORBInitInfo_ptr info)
info->register_initial_reference ("NetworkPriorityMappingManager",
network_manager);
- if (CORBA::is_nil (tao_info.in ()))
- {
- if (TAO_debug_level > 0)
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) TAO_RT_ORBInitializer::pre_init:\n"
- "(%P|%t) Unable to narrow "
- "\"PortableInterceptor::ORBInitInfo_ptr\" to\n"
- "(%P|%t) \"TAO_ORBInitInfo *.\"\n"));
-
- throw ::CORBA::INTERNAL ();
- }
-
// Create the RT_ORB.
CORBA::Object_ptr rt_orb = CORBA::Object::_nil ();
ACE_NEW_THROW_EX (rt_orb,