diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-07-24 12:53:25 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-07-24 12:53:25 +0000 |
commit | 848ce5a0c75fde9a5d2b541df749367dc0ebde7e (patch) | |
tree | 3034adc05dafa193e419055192846359ca642c58 /cpp/src | |
parent | Bug 1237. (diff) | |
download | ice-848ce5a0c75fde9a5d2b541df749367dc0ebde7e.tar.bz2 ice-848ce5a0c75fde9a5d2b541df749367dc0ebde7e.tar.xz ice-848ce5a0c75fde9a5d2b541df749367dc0ebde7e.zip |
Fixed bug 1248.
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/IceGrid/Database.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/Database.cpp b/cpp/src/IceGrid/Database.cpp index bb7e5a1e86f..4b680e1ca77 100644 --- a/cpp/src/IceGrid/Database.cpp +++ b/cpp/src/IceGrid/Database.cpp @@ -50,10 +50,15 @@ public: assert(false); } - virtual Ice::ObjectPrx + virtual Ice::ObjectPrx getDirectProxy(const Ice::Current& current) const { - return _database->getAdapterDirectProxy(current.id.name); + Ice::ObjectPrx proxy = _database->getAdapterDirectProxy(current.id.name); + if(!proxy) + { + throw Ice::ObjectNotExistException(__FILE__, __LINE__); + } + return proxy; } virtual void |