From 8b360f46456b81bbaa5b312a0aece999ca744df1 Mon Sep 17 00:00:00 2001 From: "patrick.qian" Date: Tue, 8 Aug 2023 23:45:01 +0200 Subject: [PATCH 1/2] fix crash in bss matrix --- src/thor/timedistancebssmatrix.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/thor/timedistancebssmatrix.cc b/src/thor/timedistancebssmatrix.cc index 84b5ffb7a5..2198cc570b 100644 --- a/src/thor/timedistancebssmatrix.cc +++ b/src/thor/timedistancebssmatrix.cc @@ -99,8 +99,7 @@ void TimeDistanceBSSMatrix::Expand(GraphReader& graphreader, const DirectedEdge* opp_edge = nullptr; if (!FORWARD) { // Get opposing edge Id and end node tile - graph_tile_ptr t2 = - directededge->leaves_tile() ? graphreader.GetGraphTile(directededge->endnode()) : tile; + t2 =directededge->leaves_tile() ? graphreader.GetGraphTile(directededge->endnode()) : tile; if (t2 == nullptr) { continue; } From 3adfe0c82c483057482842728bc5d328e1f6fca1 Mon Sep 17 00:00:00 2001 From: Patrick Qian Date: Wed, 9 Aug 2023 09:18:16 +0200 Subject: [PATCH 2/2] Update src/thor/timedistancebssmatrix.cc --- src/thor/timedistancebssmatrix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thor/timedistancebssmatrix.cc b/src/thor/timedistancebssmatrix.cc index 2198cc570b..75fdf40a3a 100644 --- a/src/thor/timedistancebssmatrix.cc +++ b/src/thor/timedistancebssmatrix.cc @@ -99,7 +99,7 @@ void TimeDistanceBSSMatrix::Expand(GraphReader& graphreader, const DirectedEdge* opp_edge = nullptr; if (!FORWARD) { // Get opposing edge Id and end node tile - t2 =directededge->leaves_tile() ? graphreader.GetGraphTile(directededge->endnode()) : tile; + t2 = directededge->leaves_tile() ? graphreader.GetGraphTile(directededge->endnode()) : tile; if (t2 == nullptr) { continue; }