Skip to content

Commit e8a9890

Browse files
committed
Fix FileTreeIterator not correctly continuing (#666)
1 parent 4e045b3 commit e8a9890

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/src/main/java/de/bluecolored/bluemap/core/util/FileTreeIterator.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ private void fetchNextIfNeeded() {
7676
while (ev != null) {
7777
IOException ioe = ev.ioeException();
7878
if (ioe != null) {
79-
if (ioe instanceof NoSuchFileException)
80-
continue; // ignore NoSuchFileExceptions, and just continue iterating
79+
if (ioe instanceof NoSuchFileException) {
80+
ev = walker.next(); // ignore NoSuchFileExceptions, and just continue iterating
81+
continue;
82+
}
8183
throw new UncheckedIOException(ioe);
8284
}
8385

0 commit comments

Comments
 (0)