summaryrefslogtreecommitdiff
path: root/cpp/src/Transform/Data.cpp
diff options
context:
space:
mode:
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);