summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2009-08-19 12:29:19 +0200
committerBenoit Foucher <benoit@zeroc.com>2009-08-19 12:29:19 +0200
commit01eff251dc17285e265323bf97e0566095de1096 (patch)
tree414a9ababbae22dfc40dc02bcb688ad89e67beb0 /cpp/src
parentMerge branch 'master' of cvs.zeroc.com:/home/git/ice (diff)
downloadice-01eff251dc17285e265323bf97e0566095de1096.tar.bz2
ice-01eff251dc17285e265323bf97e0566095de1096.tar.xz
ice-01eff251dc17285e265323bf97e0566095de1096.zip
Fixed bug 4221 - Glacier2 router getCategoryForClient raises NullHandleException
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Glacier2/SessionRouterI.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/Glacier2/SessionRouterI.cpp b/cpp/src/Glacier2/SessionRouterI.cpp
index f8a6c1c6034..985f1892bfe 100644
--- a/cpp/src/Glacier2/SessionRouterI.cpp
+++ b/cpp/src/Glacier2/SessionRouterI.cpp
@@ -776,7 +776,14 @@ string
Glacier2::SessionRouterI::getCategoryForClient(const Ice::Current& current) const
{
// Forward to the per-client router.
- return getRouter(current.con, current.id)->getServerProxy(current)->ice_getIdentity().category;
+ if(_instance->serverObjectAdapter())
+ {
+ return getRouter(current.con, current.id)->getServerProxy(current)->ice_getIdentity().category;
+ }
+ else
+ {
+ return "";
+ }
}
void