Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #3214
git-svn-id: file:///home/behr_mi/git/sumo_synched/trunk@24769 afbd958f-9f77-42d5-a016-97a22340ccf4
  • Loading branch information
namdre committed Jun 19, 2017
1 parent 0997030 commit 959e129
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sumo/src/netload/NLTriggerBuilder.cpp
Expand Up @@ -224,8 +224,10 @@ NLTriggerBuilder::addAccess(MSNet& /* net */, const SUMOSAXAttributes& attrs) {
if (!ok || !myHandler->checkStopPos(pos, pos, lane->getLength(), 0, friendlyPos)) {
throw InvalidArgument("Invalid position for access in stop '" + myCurrentStop->getID() + "'.");
}
// build the bus stop
myCurrentStop->addAccess(lane, pos);
// add bus stop access
if (myCurrentStop != 0) {
myCurrentStop->addAccess(lane, pos);
}
}


Expand Down Expand Up @@ -433,6 +435,7 @@ NLTriggerBuilder::buildStoppingPlace(MSNet& net, std::string id, std::vector<std
const bool success = element == SUMO_TAG_CONTAINER_STOP ? net.addContainerStop(myCurrentStop) : net.addBusStop(myCurrentStop);
if (!success) {
delete myCurrentStop;
myCurrentStop = 0;
throw InvalidArgument("Could not build " + toString(element) + " '" + id + "'; probably declared twice.");
}
}
Expand Down

0 comments on commit 959e129

Please sign in to comment.