empty or null values should not be matched

This commit is contained in:
Connor Tumbleson 2015-12-26 06:59:57 -05:00
parent f9323943db
commit 13b39903d2

View File

@ -65,6 +65,9 @@ public class ResStringValue extends ResScalarValue {
}
private String checkIfStringIsNumeric(String val) {
if (val == null || val.isEmpty()) {
return val;
}
return allDigits.matcher(val).matches() ? "\\ " + val : val;
}