From: <fwi...@us...> - 2008-05-15 23:29:24
|
Revision: 4408 http://jython.svn.sourceforge.net/jython/?rev=4408&view=rev Author: fwierzbicki Date: 2008-05-15 16:29:22 -0700 (Thu, 15 May 2008) Log Message: ----------- Temporary fix for line number problems causing NPEs. Modified Paths: -------------- branches/asm/src/org/python/core/PyTraceback.java Modified: branches/asm/src/org/python/core/PyTraceback.java =================================================================== --- branches/asm/src/org/python/core/PyTraceback.java 2008-05-15 22:11:12 UTC (rev 4407) +++ branches/asm/src/org/python/core/PyTraceback.java 2008-05-15 23:29:22 UTC (rev 4408) @@ -80,7 +80,7 @@ // Continue, we may have the line } - if (i == tb_lineno) { + if (i == tb_lineno && line != null) {//FJW: XXX: added null check just to avoid NPE. i = 0; while (i < line.length()) { char c = line.charAt(i); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |