[FIX] InvalidPathException

This commit is contained in:
Gravita 2022-01-01 22:52:04 +07:00
parent bde9fa958d
commit 8945037860

View file

@ -3,6 +3,7 @@
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.InvalidPathException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
@ -77,6 +78,8 @@ public synchronized static List<JavaVersion> findJava() {
tryAddJava(javaPaths, result, JavaVersion.getByPath(p1));
trySearchJava(javaPaths, result, p1.getParent());
}
} catch (InvalidPathException ignored) {
} catch (IOException e) {
LogHelper.error(e);
}