修改仿真仓库运行图空指针bug
This commit is contained in:
parent
889f45fe40
commit
b4b5be759f
@ -720,16 +720,18 @@ public class SimulationDataRepository {
|
|||||||
this.tdtStatusMap.clear();
|
this.tdtStatusMap.clear();
|
||||||
// 运行图
|
// 运行图
|
||||||
this.changeTrips.clear();
|
this.changeTrips.clear();
|
||||||
serviceTripsMap.forEach((k, v) -> {
|
if (serviceTripsMap != null) {
|
||||||
for (Iterator<TripPlan> iterator = v.iterator(); iterator.hasNext(); ) {
|
serviceTripsMap.forEach((k, v) -> {
|
||||||
TripPlan tripPlan = iterator.next();
|
for (Iterator<TripPlan> iterator = v.iterator(); iterator.hasNext(); ) {
|
||||||
if (tripPlan.isAdd()) {
|
TripPlan tripPlan = iterator.next();
|
||||||
iterator.remove();
|
if (tripPlan.isAdd()) {
|
||||||
} else if (tripPlan.isInvalid()) {
|
iterator.remove();
|
||||||
tripPlan.setInvalid(false);
|
} else if (tripPlan.isInvalid()) {
|
||||||
|
tripPlan.setInvalid(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user