Ignore:
Timestamp:
2015-06-19T19:20:50+02:00 (5 years ago)
Author:
simon04
Message:

fix #11150 - False validator warning on ford if node is outside the downloaded area and highway or waterway is not loaded

File:
1 edited

Legend:

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

    r8470 r8495  
    13021302     * Matches objects within source area ("downloaded area").
    13031303     */
    1304     private static class InDataSourceArea extends InArea {
     1304    public static class InDataSourceArea extends InArea {
    13051305
    13061306        public InDataSourceArea(boolean all) {
     
    13101310        @Override
    13111311        protected Bounds getBounds() {
    1312             return new Bounds(Main.main.getCurrentDataSet().getDataSourceArea().getBounds2D());
     1312            return Main.main.getCurrentDataSet() == null || Main.main.getCurrentDataSet().getDataSourceArea() == null
     1313                    ? null : new Bounds(Main.main.getCurrentDataSet().getDataSourceArea().getBounds2D());
    13131314        }
    13141315    }
Note: See TracChangeset for help on using the changeset viewer.