diff --git a/DataExtractionOSM/src/net/osmand/data/Ring.java b/DataExtractionOSM/src/net/osmand/data/Ring.java index 60e284cb76..d6ac790ee6 100644 --- a/DataExtractionOSM/src/net/osmand/data/Ring.java +++ b/DataExtractionOSM/src/net/osmand/data/Ring.java @@ -214,6 +214,7 @@ public class Ring implements Comparable { int intersections = 0; List polyNodes = getBorder(); + if (polyNodes.size() == 0) return 0; for (int i = 0; i < polyNodes.size() - 1; i++) { if (MapAlgorithms.ray_intersect_lon(polyNodes.get(i), polyNodes.get(i + 1), latitude, longitude) != -360d) {