Skip to content

Commit 04f3630

Browse files
committed
Fixing the installer in the empty disk case
1 parent 227e62a commit 04f3630

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/src/main/java/com/commonwealthrobotics/JvmManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class JvmManager {
5050
public static String getCommandString(String project, String repo, String version, String downloadJsonURL,
5151
long sizeOfJson, ProgressBar progress, String bindir) throws Exception {
5252
if(version==null)
53-
throw new RuntimeException("Version can not be null");
53+
version="0.0.1";
5454
File exe;
5555

5656
exe= download(version, downloadJsonURL, sizeOfJson, progress, bindir, "jvm.json");

lib/src/main/java/com/commonwealthrobotics/LatestFromGithubLaunchUI.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,12 @@ void initialize() {
308308
}
309309
}
310310
if(!noInternet) {
311-
if (myVersionString.contentEquals(latestVersionString)) {
311+
if(myVersionString==null)
312312
launchApplication();
313-
}
313+
else
314+
if (myVersionString.contentEquals(latestVersionString)) {
315+
launchApplication();
316+
}
314317
}else
315318
onNo(null);
316319

0 commit comments

Comments
 (0)