summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Util.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-10-28 23:00:51 +0000
committerMark Spruiell <mes@zeroc.com>2004-10-28 23:00:51 +0000
commit83763434e2c2e34106d0a6b804824f6519f1a783 (patch)
tree3d498d5ffdb97d9934f72912cc7b1636124ef186 /py/modules/IcePy/Util.cpp
parentoutgoing.abort (diff)
downloadice-83763434e2c2e34106d0a6b804824f6519f1a783.tar.bz2
ice-83763434e2c2e34106d0a6b804824f6519f1a783.tar.xz
ice-83763434e2c2e34106d0a6b804824f6519f1a783.zip
fix to avoid segfault if convertLocalException fails
Diffstat (limited to 'py/modules/IcePy/Util.cpp')
-rw-r--r--py/modules/IcePy/Util.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/py/modules/IcePy/Util.cpp b/py/modules/IcePy/Util.cpp
index 3df452a7784..199e5698a66 100644
--- a/py/modules/IcePy/Util.cpp
+++ b/py/modules/IcePy/Util.cpp
@@ -424,7 +424,10 @@ IcePy::convertException(const Ice::Exception& ex)
if(type != NULL)
{
p = createExceptionInstance(type);
- convertLocalException(e, p.get());
+ if(p.get() != NULL)
+ {
+ convertLocalException(e, p.get());
+ }
}
else
{