Skip to content

Commit

Permalink
Catch InvalidPathException thrown under JPMS
Browse files Browse the repository at this point in the history
  • Loading branch information
harawata committed Jul 10, 2020
1 parent 08d0b64 commit 77bfa56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/apache/ibatis/io/DefaultVFS.java
Expand Up @@ -25,6 +25,7 @@
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.file.InvalidPathException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
Expand Down Expand Up @@ -105,6 +106,9 @@ public List<String> list(URL url, String path) throws IOException {
break;
}
}
} catch (InvalidPathException e) {
// #1974
lines.clear();
}
if (!lines.isEmpty()) {
if (log.isDebugEnabled()) {
Expand Down

0 comments on commit 77bfa56

Please sign in to comment.