summaryrefslogtreecommitdiff
path: root/cppe/src
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2006-06-07 07:36:55 +0000
committerMichi Henning <michi@zeroc.com>2006-06-07 07:36:55 +0000
commit1d1434d996d3f85b2298bc34c7298861b913e76a (patch)
tree04e0c69b9a88e869e6cab8aa62240375aeed4681 /cppe/src
parentBug 804. (diff)
downloadice-1d1434d996d3f85b2298bc34c7298861b913e76a.tar.bz2
ice-1d1434d996d3f85b2298bc34c7298861b913e76a.tar.xz
ice-1d1434d996d3f85b2298bc34c7298861b913e76a.zip
Bug 901.
Diffstat (limited to 'cppe/src')
-rw-r--r--cppe/src/IceE/Proxy.cpp4
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));