fix NPE ( From github user:aCoder2013 )

v1.8.2
xuxueli 7 years ago
parent d1d8d61c49
commit 628a1ac547

@ -185,10 +185,10 @@ public class XxlJobServiceImpl implements IXxlJobService {
// stage job info
XxlJobInfo exists_jobInfo = xxlJobInfoDao.loadById(jobInfo.getId());
String old_cron = exists_jobInfo.getJobCron();
if (exists_jobInfo == null) {
return new ReturnT<String>(ReturnT.FAIL_CODE, "参数异常");
}
//String old_cron = exists_jobInfo.getJobCron();
exists_jobInfo.setJobCron(jobInfo.getJobCron());
exists_jobInfo.setJobDesc(jobInfo.getJobDesc());

Loading…
Cancel
Save