From 53ba054c2c3ac3717b4b177693c30b1935b6868b Mon Sep 17 00:00:00 2001 From: Henry Le Grys Date: Mon, 18 Apr 2022 19:21:20 +0100 Subject: [PATCH] Change Java runtime selector to show "unknown" instead of "null" --- .../java/com/skcraft/launcher/launch/runtime/JavaRuntime.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/launcher/src/main/java/com/skcraft/launcher/launch/runtime/JavaRuntime.java b/launcher/src/main/java/com/skcraft/launcher/launch/runtime/JavaRuntime.java index 7d92730bd..ed0e39f93 100644 --- a/launcher/src/main/java/com/skcraft/launcher/launch/runtime/JavaRuntime.java +++ b/launcher/src/main/java/com/skcraft/launcher/launch/runtime/JavaRuntime.java @@ -108,6 +108,8 @@ public int compareTo(JavaRuntime o) { @Override public String toString() { + String version = this.version != null ? this.version : "unknown"; + return String.format("Java %s (%s) (%s)", version, is64Bit ? "64-bit" : "32-bit", dir); } }