【空指针判断】

This commit is contained in:
weizhihong 2022-06-17 10:53:06 +08:00
parent 1ca1b5372b
commit b2f464b606

View File

@ -144,7 +144,9 @@ public class CtcStationRunPlanLog {
this.lateReason = null; this.lateReason = null;
this.planProperties = null; this.planProperties = null;
// 运行任务复位 // 运行任务复位
if (!CollectionUtils.isEmpty(this.runPlanTaskItemMap)) {
this.runPlanTaskItemMap.forEach((k, v) -> v.reset()); this.runPlanTaskItemMap.forEach((k, v) -> v.reset());
}
if (this.arriveRunPlan != null) { if (this.arriveRunPlan != null) {
this.arriveRunPlan.setRunModel(StationDirection.ReceiveAndDeliverModel.R); this.arriveRunPlan.setRunModel(StationDirection.ReceiveAndDeliverModel.R);
this.arriveRunPlan.reset(); this.arriveRunPlan.reset();