Ticket #18137: 18137.patch

File 18137.patch, 783 bytes (added by taylor.smock, 7 years ago)

Very simple workaround (checks if we know the latlon of the next Node).

  • src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java

     
    454454                            nextNodes.add(way.getNode(pos + 1));
    455455                        }
    456456                        for (Node next : nextNodes) {
     457                            if (next == null || !next.isLatLonKnown()) continue;
    457458                            final boolean containsN = visited.contains(next);
    458459                            visited.add(next);
    459460                            if (!containsN && isConnectedTo(next, way, visited,