Skip to content

Commit

Permalink
Fixing the installer in the empty disk case
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jun 21, 2024
1 parent 227e62a commit 04f3630
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/main/java/com/commonwealthrobotics/JvmManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class JvmManager {
public static String getCommandString(String project, String repo, String version, String downloadJsonURL,
long sizeOfJson, ProgressBar progress, String bindir) throws Exception {
if(version==null)
throw new RuntimeException("Version can not be null");
version="0.0.1";
File exe;

exe= download(version, downloadJsonURL, sizeOfJson, progress, bindir, "jvm.json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,12 @@ void initialize() {
}
}
if(!noInternet) {
if (myVersionString.contentEquals(latestVersionString)) {
if(myVersionString==null)
launchApplication();
}
else
if (myVersionString.contentEquals(latestVersionString)) {
launchApplication();
}
}else
onNo(null);

Expand Down

0 comments on commit 04f3630

Please sign in to comment.