From 631324c2c76ce194bae6afb98886ddf651399eaf Mon Sep 17 00:00:00 2001 From: walker-sheng Date: Mon, 9 Aug 2021 14:45:55 +0800 Subject: [PATCH] =?UTF-8?q?ato=E9=80=BB=E8=BE=91=E6=97=A0=E9=80=9F?= =?UTF-8?q?=E5=BA=A6=E6=9B=B2=E7=BA=BF=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rtss/simulation/cbtc/onboard/ATO/service/ATOService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/onboard/ATO/service/ATOService.java b/src/main/java/club/joylink/rtss/simulation/cbtc/onboard/ATO/service/ATOService.java index 59848b90d..7eca688cf 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/onboard/ATO/service/ATOService.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/onboard/ATO/service/ATOService.java @@ -97,6 +97,9 @@ public class ATOService { return; } SpeedCurve speedCurve = ma.getAtoStopCurve(); + if (speedCurve == null) { + return; + } // 更新目标距离和建议速度 train.setTargetDistance(speedCurve.getTotalDistance()); this.doControlBySpeedCurve(train, speedCurve, speedCurve.getTotalDistance());