Issue1812122

classification
Title: NullPointerException when rethrowing an exception
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: bleon, cgroves
Priority: normal Keywords:

Created on 2007-10-12.09:10:44 by bleon, last changed 2007-11-30.21:22:16 by cgroves.

Files
File name Uploaded Description Edit Remove
traceback_test.py bleon, 2007-10-12.09:10:44 Example file to reproduce NullPointerException
Messages
msg1970 (view) Author: Bettina (bleon) Date: 2007-10-12.09:10:44
The attached file was tested with the current developer version of jython and with cpython 2.2.3 and 2.5.1.
While the script is running successfully with cpython, jython throws a NullPointerException.

Suggested patch in Py.java:

additional check (pye.traceback.tb_frame.f_back != null) in functions:
PyException setException(Throwable t, PyFrame frame)
void addTraceback(Throwable t, PyFrame frame)
msg1971 (view) Author: Charlie Groves (cgroves) Date: 2007-11-30.21:22:16
Suggested fix committed in r3743.  Thanks!
History
Date User Action Args
2007-10-12 09:10:44bleoncreate