Skip to content

Commit

Permalink
Ignore relations without members.
Browse files Browse the repository at this point in the history
  • Loading branch information
xivk committed Feb 19, 2024
1 parent 19d433e commit 64acceb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public Result<bool> TryParse(Relation relation, Func<long, Way?> getMemberWay,
var vias = new List<Way>();
var tos = new List<Way>();
long? viaNodeId = null;
foreach (var m in relation.Members)
foreach (var m in relation.Members ?? ArraySegment<RelationMember>.Empty)
{
if (m == null) return new Result<bool>("not all members set");
if (m.Role != "via" && m.Role != "from" && m.Role != "to") continue;
Expand Down

0 comments on commit 64acceb

Please sign in to comment.