diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-09-18 19:38:20 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-09-18 19:38:20 +0000 |
commit | 4f6813b153de8c13704fc1075cd55e7119f73806 (patch) | |
tree | b3659654ea5522c523b6ba3821fa1db4e34b0ab2 /TAO/tao/ORB.cpp | |
parent | 5d40483ff01c0d6454ecd62bc4613ef2143cb58f (diff) | |
download | ATCD-4f6813b153de8c13704fc1075cd55e7119f73806.tar.gz |
ChangeLogTag:Sat Sep 18 14:15:24 1999 Ossama Othman <othman@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/ORB.cpp')
-rw-r--r-- | TAO/tao/ORB.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/TAO/tao/ORB.cpp b/TAO/tao/ORB.cpp index ab5685c2ed7..9f367ea7724 100644 --- a/TAO/tao/ORB.cpp +++ b/TAO/tao/ORB.cpp @@ -2072,7 +2072,14 @@ CORBA_ORB::object_to_string (CORBA::Object_ptr obj, else { if (obj->_stubobj () == 0) - ACE_THROW_RETURN (CORBA::MARSHAL (), 0); + { + if (TAO_debug_level > 0) + ACE_ERROR ((LM_ERROR, + "TAO_Stub pointer in CORBA::ORB::object_to_string() " + "is zero.\n")); + + ACE_THROW_RETURN (CORBA::MARSHAL (), 0); + } // @@ According to Carlos, we shouldn't be using // profile_in_use(). Instead we should use the first profile @@ -2082,7 +2089,14 @@ CORBA_ORB::object_to_string (CORBA::Object_ptr obj, // segmentation faults. // -Ossama if (obj->_stubobj ()->profile_in_use () == 0) - ACE_THROW_RETURN (CORBA::MARSHAL (), 0); + { + if (TAO_debug_level > 0) + ACE_ERROR ((LM_ERROR, + "TAO_Profile pointer in " + "CORBA::ORB::object_to_string() is zero.\n")); + + ACE_THROW_RETURN (CORBA::MARSHAL (), 0); + } return obj->_stubobj ()->profile_in_use ()->to_string (ACE_TRY_ENV); } |