The provided date can be null.

FEA: ItEr61S05BugFixing
This commit is contained in:
Óscar González Fernández 2010-10-07 01:39:07 +02:00
parent 0e3788975f
commit 85e34c0d77

View file

@ -269,6 +269,9 @@ public class ResourceLoadModel implements IResourceLoadModel {
}
public static Date asDate(LocalDate date) {
if (date == null) {
return null;
}
return date.toDateTimeAtStartOfDay().toDate();
}