diff options
Diffstat (limited to 'cpp/src')
-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); |