Commit e8ad82eec7a68f37b3a3b8443c2386fea7c26818
1 parent
0de69d15c4
Exists in
master
and in
1 other branch
code update
Showing 1 changed file with 1 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
e8ad82e
... | ... | @@ -1041,7 +1041,7 @@ |
1041 | 1041 | Collections.sort(listDate, new Comparator<SortIn>() { |
1042 | 1042 | @Override |
1043 | 1043 | public int compare(SortIn o1, SortIn o2) { |
1044 | - if (o1.getDate().after(o2.getDate())) { | |
1044 | + if (o1.getDate() != null && o1.getDate().after(o2.getDate())) { | |
1045 | 1045 | return -1; |
1046 | 1046 | } |
1047 | 1047 | if (o1.getDate().before(o2.getDate())) { |