From 8afd9b286fe6261398ad73570c8ab5e37c351a02 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Mon, 25 Jul 2022 09:29:21 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=B0=83=E5=BA=A6=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E9=9D=9E=E7=A9=BA=E5=88=A4=E6=96=AD=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../simulation/cbtc/data/storage/plan/StorageCtcZoneData.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/data/storage/plan/StorageCtcZoneData.java b/src/main/java/club/joylink/rtss/simulation/cbtc/data/storage/plan/StorageCtcZoneData.java index 38b0d6b57..d56ca0a2d 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/data/storage/plan/StorageCtcZoneData.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/data/storage/plan/StorageCtcZoneData.java @@ -42,6 +42,8 @@ public class StorageCtcZoneData { * @return */ public void convert(CtcZoneRepository repository) { - stationRunPlanMap.forEach((k, v) -> repository.getStationRunPlanMap().put(k, v)); + if (stationRunPlanMap != null) { + stationRunPlanMap.forEach((k, v) -> repository.getStationRunPlanMap().put(k, v)); + } } }