From 628a1ac54711444a55b78fef09cc0297687021b7 Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Thu, 29 Jun 2017 22:11:50 +0800 Subject: [PATCH] =?UTF-8?q?fix=20NPE=20(=20From=20github=20user=EF=BC=9AaC?= =?UTF-8?q?oder2013=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java index f7ff91c1..b36c2835 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java @@ -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(ReturnT.FAIL_CODE, "参数异常"); } + //String old_cron = exists_jobInfo.getJobCron(); exists_jobInfo.setJobCron(jobInfo.getJobCron()); exists_jobInfo.setJobDesc(jobInfo.getJobDesc());