Skip to content

Commit 495db81

Browse files
committed
fix(Scheduler): fix NPE on validationResult#lastCalendarDate
1 parent dfa3ea3 commit 495db81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/conveyal/datatools/common/utils/Scheduler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ public static void scheduleExpirationNotifications (FeedSource feedSource) {
185185
if (
186186
latest != null &&
187187
latest.validationResult != null &&
188+
latest.validationResult.lastCalendarDate != null &&
188189
latest.validationResult.lastCalendarDate.isAfter(LocalDate.now())
189190
) {
190191
// get parent project

0 commit comments

Comments
 (0)