diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/data/vr/VirtualRealityIbp.java b/src/main/java/club/joylink/rtss/simulation/cbtc/data/vr/VirtualRealityIbp.java index d96fb078c..501db448b 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/data/vr/VirtualRealityIbp.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/data/vr/VirtualRealityIbp.java @@ -23,12 +23,16 @@ public class VirtualRealityIbp { public VirtualRealityIbp(IbpData ibpData) { if (!CollectionUtils.isEmpty(ibpData.getDrawData().getSquareButtonList())) { for (IbpData.SquareButtonVO vo : ibpData.getDrawData().getSquareButtonList()) { + if (vo.getMean() == null) + continue; SquareButton button = new SquareButton(vo.getCode(), vo.getMean(), false, vo.getSectionCode(), vo.getDirection()); addElement(button); } } if (!CollectionUtils.isEmpty(ibpData.getDrawData().getCircularLampList())) { for (IbpData.CircularLampVO vo : ibpData.getDrawData().getCircularLampList()) { + if (vo.getMean() == null) + continue; addElement(new IbpElement(vo.getCode(), vo.getMean(), false, vo.getDirection())); } } @@ -39,6 +43,8 @@ public class VirtualRealityIbp { } if (!CollectionUtils.isEmpty(ibpData.getDrawData().getKeyList())) { for (IbpData.KeyVO vo : ibpData.getDrawData().getKeyList()) { + if (vo.getMean() == null) + continue; addElement(new IbpElement(vo.getCode(), vo.getMean(), false, vo.getMean().equals(Mean.SXYS))); } }