diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/TrainPositionTimeOverService.java b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/TrainPositionTimeOverService.java index b5bbb1b31..3582a96b6 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/TrainPositionTimeOverService.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/service/TrainPositionTimeOverService.java @@ -102,6 +102,10 @@ public class TrainPositionTimeOverService { continue; } if(tp.receiveTimeOver(this.receiveTimeOver)){ + if(Objects.isNull(tp.getGroupNum())){ + log.error("错误的数据:" + tp); + continue; + } if(checkExist(key,simulation)){ SimulationDataRepository repository = simulation.getRepository(); TrainStatus ts = new TrainStatus(tp.getGroupNum());