Fix exception thrown in dev

This commit is contained in:
embeddedt 2023-02-22 15:39:16 -05:00
parent 084b30e089
commit 7868bd90ee
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -43,6 +43,8 @@ public class ModernFixResourceFinder {
IModLocator locator = file.getLocator();
Iterable<Path> rootPath = getRootPathForLocator(locator, file);
for(Path root : rootPath) {
if(!Files.exists(root))
continue;
try(Stream<Path> stream = Files.walk(root)) {
stream
.map(root::relativize)