diff options
author | Benoit Foucher <benoit@zeroc.com> | 2008-04-21 14:35:11 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2008-04-21 14:35:11 +0200 |
commit | 8d5f85a682eb64d50f974a5890d5599c8711b9c0 (patch) | |
tree | 8d91318ceddb4dcf9359e547a2de3ffbb266e3b4 | |
parent | Fixed bug #2863 (diff) | |
download | ice-8d5f85a682eb64d50f974a5890d5599c8711b9c0.tar.bz2 ice-8d5f85a682eb64d50f974a5890d5599c8711b9c0.tar.xz ice-8d5f85a682eb64d50f974a5890d5599c8711b9c0.zip |
Fixed potential IceUtil::NullHandleException
-rw-r--r-- | cpp/src/Glacier2/SessionRouterI.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/Glacier2/SessionRouterI.cpp b/cpp/src/Glacier2/SessionRouterI.cpp index 229a0a51a05..a9dd1ca9b3f 100644 --- a/cpp/src/Glacier2/SessionRouterI.cpp +++ b/cpp/src/Glacier2/SessionRouterI.cpp @@ -560,7 +560,10 @@ Glacier2::CreateSession::sessionCreated(const SessionPrx& session) } catch(const Ice::Exception& ex) { - session->destroy_async(new DestroyCB(0, 0)); + if(session) + { + session->destroy_async(new DestroyCB(0, 0)); + } unexpectedCreateSessionException(ex); return; } |