src/windows/classes/sun/nio/fs/WindowsPathParser.java
Print this page
*** 72,83 ****
/**
* Parses the given input as a Windows path
*/
static Result parse(String input) {
- if (input == null || input.length() == 0)
- throw new InvalidPathException(input, "Empty or null path");
return parse(input, true);
}
/**
* Parses the given input as a Windows path where it is known that the
--- 72,81 ----
*** 133,143 ****
}
}
}
}
if (off == 0) {
! if (isSlash(input.charAt(0))) {
type = WindowsPathType.DIRECTORY_RELATIVE;
root = "\\";
} else {
type = WindowsPathType.RELATIVE;
}
--- 131,141 ----
}
}
}
}
if (off == 0) {
! if (len > 0 && isSlash(input.charAt(0))) {
type = WindowsPathType.DIRECTORY_RELATIVE;
root = "\\";
} else {
type = WindowsPathType.RELATIVE;
}