From 91da35dbf2e8ef070bfe07125a71dc522610dcdd Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Sun, 27 Feb 2000 10:43:47 +0000 Subject: File.java (File(String, String)): For dirPath, treat an empty String the same as `null'. 2000-02-27 Bryce McKinlay * java/io/File.java (File(String, String)): For dirPath, treat an empty String the same as `null'. From-SVN: r32217 --- libjava/java/io/File.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libjava/java') 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) -- cgit v1.1