Skip to content

Commit 77bfa56

Browse files
committed
Catch InvalidPathException thrown under JPMS
- #1974 - https://stackoverflow.com/questions/62756712
1 parent 08d0b64 commit 77bfa56

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/apache/ibatis/io/DefaultVFS.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import java.net.MalformedURLException;
2626
import java.net.URL;
2727
import java.net.URLEncoder;
28+
import java.nio.file.InvalidPathException;
2829
import java.util.ArrayList;
2930
import java.util.Arrays;
3031
import java.util.List;
@@ -105,6 +106,9 @@ public List<String> list(URL url, String path) throws IOException {
105106
break;
106107
}
107108
}
109+
} catch (InvalidPathException e) {
110+
// #1974
111+
lines.clear();
108112
}
109113
if (!lines.isEmpty()) {
110114
if (log.isDebugEnabled()) {

0 commit comments

Comments
 (0)