Skip to content

Commit

Permalink
Fix for #3258 - Handle path related issues in Windows (#3560)
Browse files Browse the repository at this point in the history
Edge case scenario converting file name to uri which misses the scheme leading to failure
  • Loading branch information
gitissuepost authored Oct 18, 2024
1 parent 4ea6250 commit 034c971
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private PathElements pathElementsFromDirectoryPath(String path) {
Path storyPath = null;
try {
storyPath = Paths.get(new URI(path));
} catch (URISyntaxException e) {
} catch (URISyntaxException | IllegalArgumentException e) {
storyPath = Paths.get(path);
}
for (int i = 0; i < storyPath.getNameCount(); i++) {
Expand Down

0 comments on commit 034c971

Please sign in to comment.