Commit f6bf324d by Michael Koch Committed by Michael Koch

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
parent 866212e7
2004-11-17 Michael Koch <konqueror@gmx.de> 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, * java/beans/Beans.java,
java/beans/PropertyChangeEvent.java, java/beans/PropertyChangeEvent.java,
java/beans/PropertyEditorSupport.java: java/beans/PropertyEditorSupport.java:
......
...@@ -321,7 +321,7 @@ public final class URL implements Serializable ...@@ -321,7 +321,7 @@ public final class URL implements Serializable
*/ */
public URL(String spec) throws MalformedURLException public URL(String spec) throws MalformedURLException
{ {
this((URL) null, spec, (URLStreamHandler) null); this((URL) null, spec != null ? spec : "", (URLStreamHandler) null);
} }
/** /**
......
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