Skip to content

Commit

Permalink
avoid access to invalid edge ref #13932
Browse files Browse the repository at this point in the history
Signed-off-by: m-kro <m.barthauer@t-online.de>
  • Loading branch information
m-kro committed Oct 16, 2023
1 parent 8aa3668 commit 44547b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/netimport/NIImporter_VISUM.cpp
Expand Up @@ -1164,7 +1164,10 @@ void NIImporter_VISUM::parse_stopPoints() {
WRITE_WARNINGF(TL("Ignoring stopping place '%' without node informatio"), id);
} else {
NBEdge* edge = getNamedEdge(KEYS.getString(VISUM_LINKNO));
if (from != nullptr) {
if (edge == nullptr) {
WRITE_WARNINGF(TL("Ignoring stopping place '%' with invalid edge reference '%'"), id, edgeID);
return;
} else if (from != nullptr) {
if (edge->getToNode() == from) {
NBEdge* edge2 = myNetBuilder.getEdgeCont().retrieve("-" + edge->getID());
if (edge2 == nullptr) {
Expand Down

0 comments on commit 44547b8

Please sign in to comment.