diff --git a/src/Itinero.IO.Osm/Restrictions/Turns/OsmTurnRestrictionParser.cs b/src/Itinero.IO.Osm/Restrictions/Turns/OsmTurnRestrictionParser.cs index 802d60a5c..933f0b2d8 100644 --- a/src/Itinero.IO.Osm/Restrictions/Turns/OsmTurnRestrictionParser.cs +++ b/src/Itinero.IO.Osm/Restrictions/Turns/OsmTurnRestrictionParser.cs @@ -192,7 +192,7 @@ public Result TryParse(Relation relation, Func getMemberWay, var vias = new List(); var tos = new List(); long? viaNodeId = null; - foreach (var m in relation.Members) + foreach (var m in relation.Members ?? ArraySegment.Empty) { if (m == null) return new Result("not all members set"); if (m.Role != "via" && m.Role != "from" && m.Role != "to") continue;