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)); + } } }