From: <fwi...@us...> - 2009-02-15 18:31:31
|
Revision: 6033 http://jython.svn.sourceforge.net/jython/?rev=6033&view=rev Author: fwierzbicki Date: 2009-02-15 18:31:27 +0000 (Sun, 15 Feb 2009) Log Message: ----------- Fixed NPE found with FindBugs. Modified Paths: -------------- trunk/jython/src/org/python/core/AstList.java Modified: trunk/jython/src/org/python/core/AstList.java =================================================================== --- trunk/jython/src/org/python/core/AstList.java 2009-02-15 18:22:18 UTC (rev 6032) +++ trunk/jython/src/org/python/core/AstList.java 2009-02-15 18:31:27 UTC (rev 6033) @@ -586,9 +586,10 @@ public void pyset(int index, PyObject element) { if (adapter == null) { data.set(index, element); + } else { + Object o = adapter.py2ast(element); + data.set(index, o); } - Object o = adapter.py2ast(element); - data.set(index, o); } public Object remove(int index) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |