Issue447006

classification
Title: Fix NPE in PyString constructor
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: bckfnn Nosy List: bckfnn, xoltar
Priority: normal Keywords: patch

Created on 2001-08-02.00:57:38 by xoltar, last changed 2001-08-05.13:44:34 by bckfnn.

Files
File name Uploaded Description Edit Remove
PyStringNPE.diff xoltar, 2001-08-02.00:57:39
Messages
msg2118 (view) Author: Bryn Keller (xoltar) Date: 2001-08-02.00:57:38
PyString currently doesn't check that the passed-in
String is non-null, so you only find out later when you
try to use the PyString for something (__len__, for
instance). This patch handles the problem by throwing
an IllegalArgumentException when the null is passed.
Another option might be to silently convert the null to
an empty String.
msg2119 (view) Author: Finn Bock (bckfnn) Date: 2001-08-05.13:44:34
Logged In: YES 
user_id=4201

Fixed in PyString.java: 2.47;
History
Date User Action Args
2001-08-02 00:57:38xoltarcreate