From 0c760c8458a10cb062cfec089470ac4282717b06 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 28 Jul 2021 15:50:33 +0200 Subject: [PATCH] Fix making changes to relations --- Logic/Osm/OsmObject.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Logic/Osm/OsmObject.ts b/Logic/Osm/OsmObject.ts index 51e19a3ab..8a97e9ba1 100644 --- a/Logic/Osm/OsmObject.ts +++ b/Logic/Osm/OsmObject.ts @@ -439,6 +439,8 @@ export class OsmWay extends OsmObject { const node = nodeDict.get(nodeId) if(node === undefined){ console.error("Error: node ", nodeId, "not found in ", nodeDict) + // This is probably part of a relation which hasn't been fully downloaded + continue; } const cp = node.centerpoint(); this.coordinates.push(cp);