ItEr60S04ValidacionEProbasFuncionaisItEr59S04 : [Bug #559] Fix bug.
Check null values before invoking LocalDate.fromDateFields(), which throws an exception on null input.
This commit is contained in:
parent
b68cc0b12e
commit
381f0a0807
1 changed files with 3 additions and 0 deletions
|
|
@ -129,6 +129,9 @@ public class DateConverter {
|
|||
}
|
||||
|
||||
public static XMLGregorianCalendar toXMLGregorianCalendar(Date date) {
|
||||
if(date == null) {
|
||||
return null;
|
||||
}
|
||||
return toXMLGregorianCalendar(LocalDate.fromDateFields(date));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue