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:
parent
866212e722
commit
f6bf324df0
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue