Commit b4cd399a authored by Marco Descher's avatar Marco Descher
Browse files

[23084] NPE at AbstractIdModelAdapter.toLocalDate

parent b4a3b845
Pipeline #22294 passed with stages
in 4 minutes and 43 seconds
......@@ -94,7 +94,7 @@ public class DocumentLetter extends AbstractIdDeleteModelAdapter<Brief>
@Override
public void setCreated(Date value){
getEntityMarkDirty().setCreationDate(toLocalDate(value));
getEntityMarkDirty().setCreationDate(TimeUtil.toLocalDateTime(value));
}
@Override
......
......@@ -74,7 +74,7 @@ public class TimeUtil {
return formatSafe(toLocalDateTime(new Date(lastUpdate)));
}
public static @Nullable LocalDate toLocalDate(Date date){
public static @Nullable LocalDate toLocalDate(@Nullable Date date){
if (date == null) {
return null;
}
......@@ -83,7 +83,7 @@ public class TimeUtil {
return gc.toZonedDateTime().toLocalDate();
}
public static LocalDateTime toLocalDateTime(Date date){
public static @Nullable LocalDateTime toLocalDateTime(@Nullable Date date){
if (date == null) {
return null;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment