summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/StreamI.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2012-09-19 12:00:52 -0400
committerBernard Normier <bernard@zeroc.com>2012-09-19 12:09:56 -0400
commit2068ac0ec6ce1f239abc73ff23407326ba33ffbf (patch)
tree110b52821232cdc5ffb1d6cd4f5f2110ed520f4d /cpp/src/Ice/StreamI.cpp
parentPython support for optionals (diff)
downloadice-2068ac0ec6ce1f239abc73ff23407326ba33ffbf.tar.bz2
ice-2068ac0ec6ce1f239abc73ff23407326ba33ffbf.tar.xz
ice-2068ac0ec6ce1f239abc73ff23407326ba33ffbf.zip
Partial fix for ICE-3393:
- strealined StreamTraits.h - added ability to define custom dictionaries in C++ (with cpp:type:...) - added tests for custom dictionaries in test/Ice/custom Fixed ICE-4867: - clear parameter before unmarshaling into dictionary/map in C++ - added test
Diffstat (limited to 'cpp/src/Ice/StreamI.cpp')
-rw-r--r--cpp/src/Ice/StreamI.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/Ice/StreamI.cpp b/cpp/src/Ice/StreamI.cpp
index 431926d64b0..e533b77ceda 100644
--- a/cpp/src/Ice/StreamI.cpp
+++ b/cpp/src/Ice/StreamI.cpp
@@ -702,6 +702,13 @@ void
ObjectReader::__read(BasicStream* is)
{
InputStreamI* stream = reinterpret_cast<InputStreamI*>(is->closure());
+
+ if(stream == 0)
+ {
+ Ice::ObjectNotExistException ex(__FILE__, __LINE__);
+ cerr << ex.ice_stackTrace() << endl;
+ }
+
assert(stream);
read(stream);
}