diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-11-24 13:45:37 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-11-24 13:45:37 +0000 |
commit | b0a54e61e14828c5e09b6de6f136f268ba02bb70 (patch) | |
tree | 72021af3ea9c84334a412f3df88b848e142ea58e | |
parent | 791935cd579a11cdbb3fad4fdf26a797e2f649ae (diff) | |
download | ATCD-b0a54e61e14828c5e09b6de6f136f268ba02bb70.tar.gz |
Fri Nov 24 13:45:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r-- | TAO/tao/Stub.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/TAO/tao/Stub.cpp b/TAO/tao/Stub.cpp index b7da5e16f97..df0e1fe9ecb 100644 --- a/TAO/tao/Stub.cpp +++ b/TAO/tao/Stub.cpp @@ -540,10 +540,20 @@ TAO_Stub::get_policy_overrides (const CORBA::PolicyTypeSeq &types ACE_ENV_ARG_DECL) { if (this->policies_ == 0) - return 0; + { + CORBA::PolicyList *policy_list_ptr = 0; + ACE_NEW_THROW_EX (policy_list_ptr, + CORBA::PolicyList (), + CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (0); - return this->policies_->get_policy_overrides (types - ACE_ENV_ARG_PARAMETER); + return policy_list_ptr; + } + else + { + return this->policies_->get_policy_overrides (types + ACE_ENV_ARG_PARAMETER); + } } #endif /* TAO_HAS_CORBA_MESSAGING == 1 */ |