diff options
author | Mark Spruiell <mes@zeroc.com> | 2003-10-24 03:46:00 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2003-10-24 03:46:00 +0000 |
commit | bba3401db89933cf509bebe9acee3cb506450aea (patch) | |
tree | 077a340560242088f8880dae5c24813bce6101ea /cpp/src/Transform/Data.cpp | |
parent | Fixed two typos. (diff) | |
download | ice-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.cpp | 5 |
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); |