diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-11-10 17:07:50 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-11-10 17:07:50 +0000 |
commit | 825d1b31fd8e178963c509e436ef41c61b7591f4 (patch) | |
tree | 074b74d531fce99f71b37e0ce6e4f945a0dae225 /TAO/tao/DynamicAny/DynCommon.cpp | |
parent | 1f114fed139378868414d07c22478387f95cb5c0 (diff) | |
download | ATCD-825d1b31fd8e178963c509e436ef41c61b7591f4.tar.gz |
ChangeLogTag: Mon Nov 10 11:03:34 2003 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/tao/DynamicAny/DynCommon.cpp')
-rw-r--r-- | TAO/tao/DynamicAny/DynCommon.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/TAO/tao/DynamicAny/DynCommon.cpp b/TAO/tao/DynamicAny/DynCommon.cpp index ef43460ba89..a5ea151f3b8 100644 --- a/TAO/tao/DynamicAny/DynCommon.cpp +++ b/TAO/tao/DynamicAny/DynCommon.cpp @@ -482,7 +482,19 @@ TAO_DynCommon::insert_reference (CORBA::Object_ptr value if (good_type) { TAO_OutputCDR cdr; - value->marshal (cdr); + + if (CORBA::is_nil (value)) + { + // Empty type hint, no profile. + cdr.write_ulong (1); + cdr.write_char ('\0'); + cdr.write_ulong (0); + } + else + { + value->marshal (cdr); + } + TAO::Unknown_IDL_Type *unk = 0; ACE_NEW (unk, TAO::Unknown_IDL_Type (this->type_.in (), |