diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/Ice/Proxy.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp index 94e6ce98157..1cbf3375726 100644 --- a/cpp/src/Ice/Proxy.cpp +++ b/cpp/src/Ice/Proxy.cpp @@ -393,6 +393,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)); |