Changeset 14032 in josm for trunk/src


Ignore:
Timestamp:
2018-07-15T20:08:48+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16489 - NPE at RightAndLefthandTraffic.isRightHandTraffic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/RightAndLefthandTraffic.java

    r13736 r14032  
    3838/**
    3939 * Look up, if there is right- or left-hand traffic at a certain place.
     40 * See <a href="https://en.wikipedia.org/wiki/Left-_and_right-hand_traffic">Left- and right-hand traffic</a>
    4041 */
    4142public final class RightAndLefthandTraffic {
     
    5859     */
    5960    public static synchronized boolean isRightHandTraffic(LatLon ll) {
    60         return !rlCache.get(ll);
     61        Boolean value = rlCache.get(ll);
     62        return value == null || !value;
    6163    }
    6264
Note: See TracChangeset for help on using the changeset viewer.