Commit eee026dbf7b21d62c441af12db5e53ef8aea9adb

Authored by jiangjiazhi
1 parent bfd76b913a

1

Showing 1 changed file with 1 additions and 1 deletions

platform-common/src/main/java/com/lyms/platform/common/utils/DateUtil.java View file @ eee026d
... ... @@ -95,7 +95,7 @@
95 95 return (Math.abs(year1 - year2)+i);
96 96 }
97 97 public static Integer getAge(Date birth,Date fmDate) {
98   - if (birth == null) {
  98 + if (birth == null ||null==fmDate) {
99 99 return null;
100 100 }
101 101 long m = fmDate.getTime() - birth.getTime();