Changeset 14777 in josm for trunk/src/org


Ignore:
Timestamp:
2019-02-10T12:24:23+01:00 (6 years ago)
Author:
GerdP
Message:

fix #17313 NPE when *_link road is connected to way without a highway tag (regression from r14772)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java

    r14775 r14777  
    218218            if (otherWays.size() == 1)
    219219                continue;
    220             otherWays.removeIf(w -> w == way || !highway.startsWith(w.get(HIGHWAY)) || !LINK_TO_HIGHWAYS.contains(w.get(HIGHWAY)));
     220            otherWays.removeIf(w -> w == way || !w.hasTag("highway") || !highway.startsWith(w.get(HIGHWAY)) || !LINK_TO_HIGHWAYS.contains(w.get(HIGHWAY)));
    221221            if (otherWays.isEmpty())
    222222                continue;
Note: See TracChangeset for help on using the changeset viewer.