URL.java (URL): Handle case when argument is null.

2004-11-17  Michael Koch  <konqueror@gmx.de>

	* java/net/URL.java (URL): Handle case when argument is null.

From-SVN: r90800
This commit is contained in:
Michael Koch 2004-11-17 08:40:53 +00:00 committed by Michael Koch
parent 866212e722
commit f6bf324df0
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-11-17 Michael Koch <konqueror@gmx.de>
* java/net/URL.java (URL): Handle case when argument is null.
2004-11-17 Michael Koch <konqueror@gmx.de>
* java/beans/Beans.java,

View File

@ -321,7 +321,7 @@ public final class URL implements Serializable
*/
public URL(String spec) throws MalformedURLException
{
this((URL) null, spec, (URLStreamHandler) null);
this((URL) null, spec != null ? spec : "", (URLStreamHandler) null);
}
/**