diff --git a/DataExtractionOSM/src/com/osmand/osm/MapUtils.java b/DataExtractionOSM/src/com/osmand/osm/MapUtils.java index 83c08a83dc..992a69a70a 100644 --- a/DataExtractionOSM/src/com/osmand/osm/MapUtils.java +++ b/DataExtractionOSM/src/com/osmand/osm/MapUtils.java @@ -66,7 +66,11 @@ public class MapUtils { } else if(e instanceof Relation){ List list = new ArrayList(); for(Entity fe : ((Relation) e).getMembers(null)){ - LatLon c = getCenter(fe); + LatLon c = null; + // skip relations to avoid circular dependencies + if(!(fe instanceof Relation)){ + c = getCenter(fe); + } if(c != null){ list.add(c); }