fix #2281 check if theme directory exists

This commit is contained in:
Shinsuke Sugaya 2019-10-22 13:49:40 +09:00
parent 8ae25210ff
commit 75e1d6bd0f

View file

@ -103,6 +103,12 @@ public class ThemeHelper {
}
protected void closeQuietly(final Path dir) {
if (Files.notExists(dir)) {
if (logger.isDebugEnabled()) {
logger.debug("{} does not exists.", dir);
}
return;
}
try (Stream<Path> walk = Files.walk(dir, FileVisitOption.FOLLOW_LINKS)) {
walk.sorted(Comparator.reverseOrder()).forEach(f -> {
if (logger.isDebugEnabled()) {