Changeset 14902 in josm


Ignore:
Timestamp:
2019-03-18T21:06:25+01:00 (20 months ago)
Author:
Don-vip
Message:

fix #17481 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r14470 r14902  
    901901
    902902    private TileSet getVisibleTileSet() {
    903         ProjectionBounds bounds = MainApplication.getMap().mapView.getState().getViewArea().getProjectionBounds();
     903        if (!MainApplication.isDisplayingMapView())
     904            return new TileSet();
     905        ProjectionBounds bounds = MainApplication.getMap().mapView.getProjectionBounds();
    904906        return getTileSet(bounds, currentZoomLevel);
    905907    }
Note: See TracChangeset for help on using the changeset viewer.