diff options
Diffstat (limited to 'cppe/src')
-rw-r--r-- | cppe/src/IceE/Proxy.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cppe/src/IceE/Proxy.cpp b/cppe/src/IceE/Proxy.cpp index 9251c387f3a..31ced0d3e44 100644 --- a/cppe/src/IceE/Proxy.cpp +++ b/cppe/src/IceE/Proxy.cpp @@ -476,6 +476,10 @@ IceProxy::Ice::Object::ice_getIdentity() const ObjectPrx IceProxy::Ice::Object::ice_identity(const Identity& newIdentity) const { + if(newIdentity.name.empty()) + { + throw IllegalIdentityException(__FILE__, __LINE__); + } if(newIdentity == _reference->getIdentity()) { return ObjectPrx(const_cast< ::IceProxy::Ice::Object*>(this)); |