Commit 302b3d4c authored by Edward Wang's avatar Edward Wang

src: Add default values to getProperty() to prevent NullPointerException

parent eef8871d
......@@ -216,9 +216,9 @@ public class Util {
}
String ANDROID_ABI = properties.getProperty("ANDROID_ABI");
boolean NO_NEON = properties.getProperty("NO_NEON").equals("1");
boolean NO_FPU = properties.getProperty("NO_FPU").equals("1");
boolean NO_ARMV6 = properties.getProperty("NO_ARMV6").equals("1");
boolean NO_NEON = properties.getProperty("NO_NEON","0").equals("1");
boolean NO_FPU = properties.getProperty("NO_FPU","0").equals("1");
boolean NO_ARMV6 = properties.getProperty("NO_ARMV6","0").equals("1");
boolean hasNeon = false, hasFpu = false, hasArmV6 = false, hasArmV7 = false;
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment