diff options
Diffstat (limited to 'py/modules/IcePy/Proxy.cpp')
-rw-r--r-- | py/modules/IcePy/Proxy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/modules/IcePy/Proxy.cpp b/py/modules/IcePy/Proxy.cpp index b99fedd924d..d27fc464ece 100644 --- a/py/modules/IcePy/Proxy.cpp +++ b/py/modules/IcePy/Proxy.cpp @@ -1805,7 +1805,7 @@ proxyIceUncheckedCast(PyObject* type, PyObject* args) { PyObject* obj; char* facet; - if(!PyArg_ParseTuple(args, STRCAST("Os"), &obj, &facet)) + if(!PyArg_ParseTuple(args, STRCAST("Oz"), &obj, &facet)) { return 0; } @@ -1824,7 +1824,7 @@ proxyIceUncheckedCast(PyObject* type, PyObject* args) ProxyObject* p = reinterpret_cast<ProxyObject*>(obj); - if(strlen(facet) > 0) + if(facet && strlen(facet) > 0) { return createProxy((*p->proxy)->ice_facet(facet), *p->communicator, type); } |