Allow null value for numeric properties

This commit is contained in:
Clément Fournier
2017-11-11 12:20:43 +01:00
parent c1ccc26de8
commit bf3ce9d37a

View File

@ -39,6 +39,9 @@ public class NumericPropertyModule<T extends Number> {
public void checkNumber(T number) {
if (number == null) {
return; // TODO: remove me when you scrap StatisticalRule (see pull #727)
}
String error = valueErrorFor(number);
if (error != null) {
throw new IllegalArgumentException(error);