Changeset 16466 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2020-05-20T22:51:41+02:00 (5 years ago)
Author:
simon04
Message:

see #19259 - NPE robustness

Possible regression from r16436

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2SubGrid.java

    r16436 r16466  
    2525import java.nio.charset.StandardCharsets;
    2626import java.util.Arrays;
     27import java.util.Objects;
    2728
    2829import org.openstreetmap.josm.tools.Logging;
     
    179180                .filter(aSubGrid -> aSubGrid.isCoordWithin(lon, lat))
    180181                .map(aSubGrid -> aSubGrid.getSubGridForCoord(lon, lat))
     182                .filter(Objects::nonNull)
    181183                .findFirst().orElse(this);
    182184    }
Note: See TracChangeset for help on using the changeset viewer.