Fix bug
The provided date can be null. FEA: ItEr61S05BugFixing
This commit is contained in:
parent
0e3788975f
commit
85e34c0d77
1 changed files with 3 additions and 0 deletions
|
|
@ -269,6 +269,9 @@ public class ResourceLoadModel implements IResourceLoadModel {
|
|||
}
|
||||
|
||||
public static Date asDate(LocalDate date) {
|
||||
if (date == null) {
|
||||
return null;
|
||||
}
|
||||
return date.toDateTimeAtStartOfDay().toDate();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue