mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] InvalidPathException
This commit is contained in:
parent
bde9fa958d
commit
8945037860
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue