X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/856e03b7538cb74a991ad18a13708583d8712fdd..e4a7bbfc1ebf7434b7c291e6fb4a060dcd9b0aee:/wxPython/src/libpy.c?ds=sidebyside diff --git a/wxPython/src/libpy.c b/wxPython/src/libpy.c index 7e400062a8..1116e677df 100644 --- a/wxPython/src/libpy.c +++ b/wxPython/src/libpy.c @@ -409,6 +409,8 @@ SWIG_GetPtrObj(PyObject *obj, void **ptr, char *type) { Py_DECREF(sobj); } str = PyString_AsString(sobj); + if (str == NULL) + return ""; return SWIG_GetPtr(str,ptr,type); }