修改方向杆数据构建bug
This commit is contained in:
parent
374390696d
commit
67459ddad8
@ -205,7 +205,7 @@ public class MapDeviceBuilder {
|
||||
relSectionList.add(section);
|
||||
while (true) {
|
||||
section = section.getSectionOf(right);
|
||||
if (section.isSwitchTrack()) {
|
||||
if (section == null || section.isSwitchTrack()) {
|
||||
break;
|
||||
} else if (section.isStandTrack() && section.getStation().equals(endStation)) {
|
||||
directionRod.getStandTrackList().add(section);
|
||||
@ -217,7 +217,7 @@ public class MapDeviceBuilder {
|
||||
}
|
||||
relSectionList.add(section);
|
||||
}
|
||||
if (!section.isSwitchTrack()) {
|
||||
if (section != null && !section.isSwitchTrack()) {
|
||||
sectionSet.add(section);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user