diff --git a/src/main/java/org/ntlab/citrusserver/repositories/ScheduleManager.java b/src/main/java/org/ntlab/citrusserver/repositories/ScheduleManager.java index 0a9a0c9..57f16eb 100644 --- a/src/main/java/org/ntlab/citrusserver/repositories/ScheduleManager.java +++ b/src/main/java/org/ntlab/citrusserver/repositories/ScheduleManager.java @@ -147,6 +147,13 @@ .computeIfAbsent(month, k -> new HashMap<>()) .computeIfAbsent(day, k -> new HashMap<>()) .put(scheduleId, schedule); + }else { + Schedule newSchedule = new Schedule("", "", "",-1,-1); + resultSchedules + .computeIfAbsent(year, k -> new HashMap<>()) + .computeIfAbsent(month, k -> new HashMap<>()) + .computeIfAbsent(day, k -> new HashMap<>()) + .put(scheduleId, newSchedule); } } return resultSchedules.get(year).get(month).get(day);