修改仿真数据校验bug

This commit is contained in:
joylink_zhangsai 2021-06-23 13:37:08 +08:00
parent 757bd9d497
commit 4bf6f3fd5e

View File

@ -1217,7 +1217,8 @@ public class InterlockBuilder2 {
if (!CollectionUtils.isEmpty(logicCodeList)) { if (!CollectionUtils.isEmpty(logicCodeList)) {
for (String code : logicCodeList) { for (String code : logicCodeList) {
Section logic = ((Section) elementMap.get(code)); Section logic = ((Section) elementMap.get(code));
errMsgList.add(String.format("编码为[%s]的区段不存在", code)); if (logic == null)
errMsgList.add(String.format("编码为[%s]的区段不存在", code));
logicList.add(logic); logicList.add(logic);
} }
} }