Skip to content

Commit

Permalink
refactor(Update to guard against missing target zoned date time when …
Browse files Browse the repository at this point in the history
…updating monitored trip):
  • Loading branch information
br648 committed Dec 16, 2024
1 parent 22ed611 commit 5159804
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,9 @@ private boolean updateMonitoredTrip() {
return false;
}
journeyState.matchingItinerary = matchingItinerary;
journeyState.targetDate = targetZonedDateTime.format(DateTimeUtils.DEFAULT_DATE_FORMATTER);
if (targetZonedDateTime != null) {
journeyState.targetDate = targetZonedDateTime.format(DateTimeUtils.DEFAULT_DATE_FORMATTER);
}
journeyState.lastCheckedEpochMillis = DateTimeUtils.currentTimeMillis();
// Update notification time if notification successfully sent.
if (notificationTimestampMillis != -1) {
Expand Down

0 comments on commit 5159804

Please sign in to comment.