Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public static void assertValidLocation(String location) {
* the input as a local file path and converts it to a "file://" URI.
*
* @param inputPath the input path or URI to be standardized.
* @return the standardized URI string.
* @return the standardized URI string, or null if inputPath is null.
* @throws BaseException if the input path has an unsupported URI scheme.
* <p>Examples of input and output:
* <pre>
Expand All @@ -241,6 +241,9 @@ public static void assertValidLocation(String location) {
* </pre>
*/
public static String toStandardizedURIString(String inputPath) {
if (inputPath == null) {
return null;
}
// Check if the path is already a URI with a valid scheme
URI uri;
try {
Expand Down
Loading