Fix behaviour of table if sources/destinations arrays are empty
This commit is contained in:
@@ -186,7 +186,7 @@ Status TripPlugin::HandleRequest(const api::TripParameters ¶meters,
|
||||
|
||||
// compute the duration table of all phantom nodes
|
||||
const auto result_table = util::DistTableWrapper<EdgeWeight>(
|
||||
duration_table(snapped_phantoms), number_of_locations);
|
||||
duration_table(snapped_phantoms, {}, {}), number_of_locations);
|
||||
|
||||
if (result_table.size() == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user