修改仿真仓库运行图空指针bug

This commit is contained in:
walker-sheng 2021-07-05 15:30:56 +08:00
parent 889f45fe40
commit b4b5be759f

View File

@ -720,6 +720,7 @@ public class SimulationDataRepository {
this.tdtStatusMap.clear(); this.tdtStatusMap.clear();
// 运行图 // 运行图
this.changeTrips.clear(); this.changeTrips.clear();
if (serviceTripsMap != null) {
serviceTripsMap.forEach((k, v) -> { serviceTripsMap.forEach((k, v) -> {
for (Iterator<TripPlan> iterator = v.iterator(); iterator.hasNext(); ) { for (Iterator<TripPlan> iterator = v.iterator(); iterator.hasNext(); ) {
TripPlan tripPlan = iterator.next(); TripPlan tripPlan = iterator.next();
@ -731,6 +732,7 @@ public class SimulationDataRepository {
} }
}); });
} }
}
/** /**
* 查询所有锁闭的进路 * 查询所有锁闭的进路