From 4bf6f3fd5e38f7fce40a579b0355ca5d1f6168d8 Mon Sep 17 00:00:00 2001 From: joylink_zhangsai <1021828630@qq.com> Date: Wed, 23 Jun 2021 13:37:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=BF=E7=9C=9F=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=A0=A1=E9=AA=8Cbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../joylink/rtss/simulation/cbtc/build/InterlockBuilder2.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/build/InterlockBuilder2.java b/src/main/java/club/joylink/rtss/simulation/cbtc/build/InterlockBuilder2.java index e4cbb9e61..42cf81d3c 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/build/InterlockBuilder2.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/build/InterlockBuilder2.java @@ -1217,7 +1217,8 @@ public class InterlockBuilder2 { if (!CollectionUtils.isEmpty(logicCodeList)) { for (String code : logicCodeList) { Section logic = ((Section) elementMap.get(code)); - errMsgList.add(String.format("编码为[%s]的区段不存在", code)); + if (logic == null) + errMsgList.add(String.format("编码为[%s]的区段不存在", code)); logicList.add(logic); } }