Commit a81eb010 by Tom Tromey Committed by Tom Tromey

ResourceBundle.java (getBundle): Throw NullPointerException if baseName is null.

	* java/util/ResourceBundle.java (getBundle): Throw
	NullPointerException if baseName is null.

From-SVN: r27126
parent ae188a87
1999-05-24 Tom Tromey <tromey@cygnus.com>
* java/util/ResourceBundle.java (getBundle): Throw
NullPointerException if baseName is null.
1999-05-22 Tom Tromey <tromey@cygnus.com> 1999-05-22 Tom Tromey <tromey@cygnus.com>
* java/util/zip/ZipInputStream.java (fill): New method. * java/util/zip/ZipInputStream.java (fill): New method.
......
...@@ -156,6 +156,9 @@ public abstract class ResourceBundle ...@@ -156,6 +156,9 @@ public abstract class ResourceBundle
ResourceBundle rb; ResourceBundle rb;
Class rbc; Class rbc;
if (baseName == null)
throw new NullPointerException ();
rb = partialGetBundle(baseName, locale, false); rb = partialGetBundle(baseName, locale, false);
if (rb != null) if (rb != null)
return rb; return rb;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment