Restore containers accepting NULL pointers when used in overloaded methods - problem reported by Josh Cherry

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10217 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-01-22 23:33:59 +00:00
commit 76229dbab8
3 changed files with 12 additions and 1 deletions

View file

@ -702,7 +702,7 @@ namespace swig {
typedef T value_type;
static int asptr(PyObject *obj, sequence **seq) {
if (SWIG_Python_GetSwigThis(obj)) {
if (obj == Py_None || SWIG_Python_GetSwigThis(obj)) {
sequence *p;
if (SWIG_ConvertPtr(obj,(void**)&p,
swig::type_info<sequence>(),0) == SWIG_OK) {