Index: trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java	(revision 14899)
+++ trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java	(revision 14902)
@@ -901,5 +901,7 @@
 
     private TileSet getVisibleTileSet() {
-        ProjectionBounds bounds = MainApplication.getMap().mapView.getState().getViewArea().getProjectionBounds();
+        if (!MainApplication.isDisplayingMapView())
+            return new TileSet();
+        ProjectionBounds bounds = MainApplication.getMap().mapView.getProjectionBounds();
         return getTileSet(bounds, currentZoomLevel);
     }
