diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-10-28 23:00:51 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-10-28 23:00:51 +0000 |
commit | 83763434e2c2e34106d0a6b804824f6519f1a783 (patch) | |
tree | 3d498d5ffdb97d9934f72912cc7b1636124ef186 /py/modules/IcePy/Util.cpp | |
parent | outgoing.abort (diff) | |
download | ice-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.cpp | 5 |
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 { |