ConstraintsHelper: Fix checking for a boolean system property

Change-Id: I62b9e1cc8a4896062a3ffddbf2c33c566fd592dc
This commit is contained in:
Michele Bono
2019-01-14 21:23:50 +01:00
committed by Bruno Martins
parent bbc2643632
commit d58f2db1d9

View File

@@ -192,7 +192,7 @@ public class ConstraintsHelper {
if (rProperty != null) {
boolean negated = isNegated(rProperty);
if (negated) {
rProperty = rFeature.substring(1);
rProperty = rProperty.substring(1);
}
String value = SystemProperties.get(rProperty);
boolean available = value != null && Boolean.parseBoolean(value);