Skip to content

Commit

Permalink
Merge pull request #18 from thefightagainstmalware/patch-npe-getenv
Browse files Browse the repository at this point in the history
Patch NullPointerException in System.getenv
  • Loading branch information
pandaninjas authored Oct 13, 2023
2 parents c85280a + c8c3d07 commit 8db2585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
kotlin("jvm")
}

version = "1.2.0"
version = "1.2.1"
group = "gq.malwarefight.nosession"

val kotlinVersion = "1.8.21"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public static void relaunchProcess(Matcher m) throws Exception {
if (new File("/.flatpak-info").exists()) {
LogManager.getLogger().warn("Bubblewrap sandboxing doesn't work on Flatpak. Malicious mods " +
"could still steal long-lived session secrets");
} else if (System.getenv("MINECRAFT_SANDBOX_VARIANT").equals("prismlauncher-bwrap")) {
} else if ("prismlauncher-bwrap".equals(System.getenv("MINECRAFT_SANDBOX_VARIANT"))) {
LogManager.getLogger().info("Detected PrismLauncher sandbox, continuing...");
} else if (System.getProperties().containsKey("gq.malwarefight.nosession.disable_sandbox")) {
LogManager.getLogger().info("Skipping sandboxing because gq.malwarefight.nosession.disable_sandbox was set...");
Expand Down

0 comments on commit 8db2585

Please sign in to comment.