ResourceBundle.java (getBundle): Throw NullPointerException if baseName is null.
* java/util/ResourceBundle.java (getBundle): Throw NullPointerException if baseName is null. From-SVN: r27126
This commit is contained in:
parent
ae188a870e
commit
a81eb01077
@ -1,3 +1,8 @@
|
|||||||
|
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
|
|||||||
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;
|
||||||
@ -167,7 +170,7 @@ public abstract class ResourceBundle
|
|||||||
if (rb != null)
|
if (rb != null)
|
||||||
return rb;
|
return rb;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new MissingResourceException("can't load bundle",
|
throw new MissingResourceException("can't load bundle",
|
||||||
baseName,
|
baseName,
|
||||||
"bundle");
|
"bundle");
|
||||||
|
Loading…
Reference in New Issue
Block a user