diff --git a/src/main/java/club/joylink/rtss/vo/client/runplan/RunPlanLoadVO.java b/src/main/java/club/joylink/rtss/vo/client/runplan/RunPlanLoadVO.java index f8bcabbe2..0bba17f55 100644 --- a/src/main/java/club/joylink/rtss/vo/client/runplan/RunPlanLoadVO.java +++ b/src/main/java/club/joylink/rtss/vo/client/runplan/RunPlanLoadVO.java @@ -77,8 +77,9 @@ public class RunPlanLoadVO { this.id = runPlanLoad.getId(); this.mapId = runPlanLoad.getMapId(); this.templatePlanId = runPlanLoad.getTemplatePlanId(); - this.loadTime =runPlanLoad.getLoadTime(); - this.loadRule = BusinessConsts.RunPlanLoadRule.valueOf(runPlanLoad.getLoadRule()); + this.loadTime = runPlanLoad.getLoadTime(); + if (runPlanLoad.getLoadRule() != null) + this.loadRule = BusinessConsts.RunPlanLoadRule.valueOf(runPlanLoad.getLoadRule()); this.userId = runPlanLoad.getUserId(); this.creatorId = runPlanLoad.getCreatorId(); }