Handle case when property is missed
This commit is contained in:
@@ -59,7 +59,12 @@ class LocalBuildPropertiesProvider {
|
||||
}
|
||||
|
||||
Boolean getBoolean(String name) {
|
||||
return Boolean.parseBoolean(getString(name).trim())
|
||||
def property = getString(name)
|
||||
if (property == null) {
|
||||
return false
|
||||
} else {
|
||||
return Boolean.parseBoolean(property.trim())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user