diff options
author | Michi Henning <michi@zeroc.com> | 2006-06-07 07:36:55 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2006-06-07 07:36:55 +0000 |
commit | 1d1434d996d3f85b2298bc34c7298861b913e76a (patch) | |
tree | 04e0c69b9a88e869e6cab8aa62240375aeed4681 /cpp/src/Ice/Proxy.cpp | |
parent | Bug 804. (diff) | |
download | ice-1d1434d996d3f85b2298bc34c7298861b913e76a.tar.bz2 ice-1d1434d996d3f85b2298bc34c7298861b913e76a.tar.xz ice-1d1434d996d3f85b2298bc34c7298861b913e76a.zip |
Bug 901.
Diffstat (limited to 'cpp/src/Ice/Proxy.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)); |