Ignore:
Timestamp:
2016-08-31T16:12:28+02:00 (4 years ago)
Author:
simon04
Message:

fix #11852 - NPE in SearchCompiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r10794 r10919  
    14521452                LatLon coordinate = ((Node) osm).getCoor();
    14531453                Collection<Bounds> allBounds = getBounds(osm);
    1454                 return allBounds != null && allBounds.stream().anyMatch(bounds -> bounds.contains(coordinate));
     1454                return coordinate != null && allBounds != null && allBounds.stream().anyMatch(bounds -> bounds.contains(coordinate));
    14551455            } else if (osm instanceof Way) {
    14561456                Collection<Node> nodes = ((Way) osm).getNodes();
Note: See TracChangeset for help on using the changeset viewer.