diff --git a/LauncherCore/src/main/java/pro/gravit/utils/helper/JavaHelper.java b/LauncherCore/src/main/java/pro/gravit/utils/helper/JavaHelper.java index f901da42..286806bd 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/helper/JavaHelper.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/helper/JavaHelper.java @@ -103,6 +103,9 @@ public synchronized static List findJava() { } private static JavaVersion tryFindJavaByPath(Path path) { + if(javaVersionsCache == null) { + return null; + } for(JavaVersion version : javaVersionsCache) { if(version.jvmDir.equals(path)) { return version;