mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
fix: NPE of DailyTimeIntervalStrategyHandler
This commit is contained in:
parent
8ea4a5b260
commit
3aa42819e4
@ -74,7 +74,7 @@ public class DailyTimeIntervalStrategyHandler implements TimingStrategyHandler {
|
||||
long interval = timeUnit.toMillis(ep.interval);
|
||||
|
||||
Long ret = calculateInRangeTime(preTriggerTime + interval, ep);
|
||||
if (ret == null || ret <= endTime) {
|
||||
if (ret == null || ret <= Optional.ofNullable(endTime).orElse(Long.MAX_VALUE)) {
|
||||
return ret;
|
||||
}
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user