diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-17 08:40:53 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-17 08:40:53 +0000 |
commit | aaa6a523451c253e394f4cc2ce9908fad8a42a2d (patch) | |
tree | f9f4470c986828b8777752c541baf7d51a7d6eec /libjava | |
parent | 973ff22ddc2ceef9d9c7cb02f0edf891d86ffb27 (diff) | |
download | gcc-aaa6a523451c253e394f4cc2ce9908fad8a42a2d.tar.gz |
2004-11-17 Michael Koch <konqueror@gmx.de>
* java/net/URL.java (URL): Handle case when argument is null.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90800 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/java/net/URL.java | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 8477cd253a2..d950e93ecf9 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,9 @@ 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/PropertyChangeEvent.java, java/beans/PropertyEditorSupport.java: diff --git a/libjava/java/net/URL.java b/libjava/java/net/URL.java index 0817126da10..4353662908a 100644 --- a/libjava/java/net/URL.java +++ b/libjava/java/net/URL.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); } /** |