From: Finn B. <bc...@us...> - 2001-08-05 13:44:10
|
Update of /cvsroot/jython/jython/org/python/core In directory usw-pr-cvs1:/tmp/cvs-serv7176 Modified Files: PyString.java Log Message: [ #447006 ] Fix NPE in PyString constructor Index: PyString.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/core/PyString.java,v retrieving revision 2.46 retrieving revision 2.47 diff -C2 -d -r2.46 -r2.47 *** PyString.java 2001/07/27 14:55:46 2.46 --- PyString.java 2001/08/05 13:44:07 2.47 *************** *** 241,244 **** --- 241,248 ---- public PyString(String string) { + if (string == null) { + throw new IllegalArgumentException( + "Cannot create PyString from null!"); + } this.string = string; } |