mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 16:16:04 -04:00
try{}catch wrapping when setting os env vars
This commit is contained in:
parent
1be67a8c27
commit
959d3e6d1c
@ -254,7 +254,11 @@ public class JREUtils {
|
||||
}
|
||||
for (Map.Entry<String, String> env : envMap.entrySet()) {
|
||||
Logger.getInstance().appendToLog("Added custom env: " + env.getKey() + "=" + env.getValue());
|
||||
try {
|
||||
Os.setenv(env.getKey(), env.getValue(), true);
|
||||
}catch (NullPointerException exception){
|
||||
Log.e("JREUtils", exception.toString());
|
||||
}
|
||||
}
|
||||
|
||||
File serverFile = new File(Tools.DIR_HOME_JRE + "/" + Tools.DIRNAME_HOME_JRE + "/server/libjvm.so");
|
||||
|
Loading…
x
Reference in New Issue
Block a user