Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyan1998 committed Dec 13, 2023
1 parent 316ae90 commit aa56e49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static boolean refreshJob(JobInfoDetail jobInfoDetail, boolean needSave)
jobInstance.setError(jobDataDto.getErrorMsg());
jobInfoDetail.getJobDataDto().setError(true);
jobInfoDetail.getJobDataDto().setErrorMsg(jobDataDto.getErrorMsg());
if (jobInstance.getFinishTime()==null || TimeUtil.localDateTimeToLong(jobInstance.getFinishTime()) < 1) {
if (jobInstance.getFinishTime() == null || TimeUtil.localDateTimeToLong(jobInstance.getFinishTime()) < 1) {
jobInstance.setFinishTime(LocalDateTime.now());
}
} else {
Expand Down

0 comments on commit aa56e49

Please sign in to comment.