diff options
author | Mark Spruiell <mes@zeroc.com> | 2008-07-07 10:33:01 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2008-07-07 10:33:01 -0700 |
commit | 75c6c89ea21f0cd8aa56fc9fed08516ec2117e7f (patch) | |
tree | 2d70eda988f37ebbad94f9cb607274f69ca33630 /py/modules/IcePy/Proxy.cpp | |
parent | Another version with Mumble (diff) | |
download | ice-75c6c89ea21f0cd8aa56fc9fed08516ec2117e7f.tar.bz2 ice-75c6c89ea21f0cd8aa56fc9fed08516ec2117e7f.tar.xz ice-75c6c89ea21f0cd8aa56fc9fed08516ec2117e7f.zip |
fixing python bugs in stringToProxy/propertyToProxy
Diffstat (limited to 'py/modules/IcePy/Proxy.cpp')
-rw-r--r-- | py/modules/IcePy/Proxy.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/modules/IcePy/Proxy.cpp b/py/modules/IcePy/Proxy.cpp index 451ed2ab2b2..678f2709e75 100644 --- a/py/modules/IcePy/Proxy.cpp +++ b/py/modules/IcePy/Proxy.cpp @@ -2152,6 +2152,8 @@ IcePy::initProxy(PyObject* module) PyObject* IcePy::createProxy(const Ice::ObjectPrx& proxy, const Ice::CommunicatorPtr& communicator, PyObject* type) { + assert(proxy); + if(!type) { PyTypeObject* proxyType = &ProxyType; // Necessary to prevent GCC's strict-alias warnings. |