Commit 5015430e by s_guodong

update

parent 05b5cf8d
......@@ -79,7 +79,7 @@ public class ValidatorUtil {
}
}
}
if (f.isAnnotationPresent(DecimalLength.class)) {
if (f.isAnnotationPresent(DecimalLength.class) && null != o) {
String bigDecimal = ((BigDecimal) o).toPlainString();
DecimalLength annotation = f.getAnnotation(DecimalLength.class);
int i = bigDecimal.indexOf(".");
......
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