summaryrefslogtreecommitdiff
path: root/cpp/src/Transform/Data.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2003-10-24 03:46:00 +0000
committerMark Spruiell <mes@zeroc.com>2003-10-24 03:46:00 +0000
commitbba3401db89933cf509bebe9acee3cb506450aea (patch)
tree077a340560242088f8880dae5c24813bce6101ea /cpp/src/Transform/Data.cpp
parentFixed two typos. (diff)
downloadice-bba3401db89933cf509bebe9acee3cb506450aea.tar.bz2
ice-bba3401db89933cf509bebe9acee3cb506450aea.tar.xz
ice-bba3401db89933cf509bebe9acee3cb506450aea.zip
marshaling bug fix
Diffstat (limited to 'cpp/src/Transform/Data.cpp')
-rw-r--r--cpp/src/Transform/Data.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/Transform/Data.cpp b/cpp/src/Transform/Data.cpp
index 9cac11ce1e0..4950909ba3c 100644
--- a/cpp/src/Transform/Data.cpp
+++ b/cpp/src/Transform/Data.cpp
@@ -182,7 +182,10 @@ Transform::ObjectReader::__read(IceInternal::BasicStream* is, bool rid)
{
string id;
is->readTypeId(id);
- assert(id == Ice::Object::ice_staticId());
+ if(id != Ice::Object::ice_staticId())
+ {
+ throw Ice::MarshalException(__FILE__, __LINE__);
+ }
}
is->startReadSlice();
_value->_facetMap->unmarshal(*is);