Skip to content

Commit d50d509

Browse files
committed
Avoid walking non-existant path when checking for file changes
1 parent 32fb569 commit d50d509

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/devmode/src/main/java/io/quarkus/dev/RuntimeUpdatesProcessor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ private Set<String> checkForFileChange() {
295295
continue;
296296
}
297297
Path root = Paths.get(rootPath);
298+
if (!Files.exists(root) || !Files.isReadable(root))
299+
continue;
298300
Path classesDir = Paths.get(module.getClassesPath());
299301
//copy all modified non hot deployment files over
300302
if (doCopy) {

0 commit comments

Comments
 (0)