mirror of
https://github.com/revanced/Apktool.git
synced 2024-08-28 10:05:51 +02:00
fix: Make sure the property is not null
This commit is contained in:
parent
61bcd855dd
commit
2c9e14c94b
@ -18,7 +18,7 @@ package brut.util;
|
|||||||
|
|
||||||
public class OSDetection {
|
public class OSDetection {
|
||||||
private static final String OS = System.getProperty("os.name").toLowerCase();
|
private static final String OS = System.getProperty("os.name").toLowerCase();
|
||||||
private static final String BIT = System.getProperty("sun.arch.data.model").toLowerCase();
|
private static final String BIT = System.getProperty("sun.arch.data.model");
|
||||||
|
|
||||||
public static boolean isWindows() {
|
public static boolean isWindows() {
|
||||||
return (OS.contains("win"));
|
return (OS.contains("win"));
|
||||||
@ -48,7 +48,7 @@ public class OSDetection {
|
|||||||
|
|
||||||
return arch != null && arch.endsWith("64") || wow64Arch != null && wow64Arch.endsWith("64");
|
return arch != null && arch.endsWith("64") || wow64Arch != null && wow64Arch.endsWith("64");
|
||||||
}
|
}
|
||||||
return BIT.equalsIgnoreCase("64");
|
return BIT != null && BIT.equalsIgnoreCase("64");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String returnOS() {
|
public static String returnOS() {
|
||||||
|
Loading…
Reference in New Issue
Block a user