From 80684a5172d9a64c18ba96ff03ada11b541734ce Mon Sep 17 00:00:00 2001 From: bryce Date: Sun, 27 Feb 2000 10:43:47 +0000 Subject: 2000-02-27 Bryce McKinlay * java/io/File.java (File(String, String)): For dirPath, treat an empty String the same as `null'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32217 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 184c5e0a7f9..c4a4e39a19d 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.2.3