diff options
author | Bryce McKinlay <bryce@albatross.co.nz> | 2000-02-27 10:43:47 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2000-02-27 10:43:47 +0000 |
commit | 91da35dbf2e8ef070bfe07125a71dc522610dcdd (patch) | |
tree | bcd54e99a88cd44c72ca6788e743ef4d317e354a /libjava/java/io/File.java | |
parent | 5d112ff36680fd5ef196df0ceaa562d46f5d20f5 (diff) | |
download | gcc-91da35dbf2e8ef070bfe07125a71dc522610dcdd.zip gcc-91da35dbf2e8ef070bfe07125a71dc522610dcdd.tar.gz gcc-91da35dbf2e8ef070bfe07125a71dc522610dcdd.tar.bz2 |
File.java (File(String, String)): For dirPath, treat an empty String the same as `null'.
2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
* java/io/File.java (File(String, String)): For dirPath, treat an
empty String the same as `null'.
From-SVN: r32217
Diffstat (limited to 'libjava/java/io/File.java')
-rw-r--r-- | libjava/java/io/File.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/java/io/File.java b/libjava/java/io/File.java index 184c5e0..c4a4e39 100644 --- a/libjava/java/io/File.java +++ b/libjava/java/io/File.java @@ -79,7 +79,7 @@ public class File implements Serializable { if (name == null) throw new NullPointerException (); - if (dirPath != null) + if (dirPath != null && dirPath.length() > 0) { // Try to be smart about the number of separator characters. if (dirPath.charAt(dirPath.length() - 1) == separatorChar) |