From: <fwi...@us...> - 2009-04-10 04:01:56
|
Revision: 6202 http://jython.svn.sourceforge.net/jython/?rev=6202&view=rev Author: fwierzbicki Date: 2009-04-10 04:01:54 +0000 (Fri, 10 Apr 2009) Log Message: ----------- Added null check. Modified Paths: -------------- branches/newlist/src/org/python/core/PyList.java Modified: branches/newlist/src/org/python/core/PyList.java =================================================================== --- branches/newlist/src/org/python/core/PyList.java 2009-04-10 03:57:54 UTC (rev 6201) +++ branches/newlist/src/org/python/core/PyList.java 2009-04-10 04:01:54 UTC (rev 6202) @@ -134,7 +134,7 @@ value = new PyList((PySequence) value); } setsliceIterator(start, stop, step, value.asIterable().iterator()); - } else if (!(value instanceof List)) { + } else if (value != null && !(value instanceof List)) { //XXX: can we avoid copying here? Needed to pass test_userlist value = new PyList(value); setsliceIterator(start, stop, step, value.asIterable().iterator()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |