diff --git a/src/org/openstreetmap/josm/plugins/continuosDownload/AbstractDownloadStrategy.java b/src/org/openstreetmap/josm/plugins/continuosDownload/AbstractDownloadStrategy.java index 1cd4918..c5f386e 100644 --- a/src/org/openstreetmap/josm/plugins/continuosDownload/AbstractDownloadStrategy.java +++ b/src/org/openstreetmap/josm/plugins/continuosDownload/AbstractDownloadStrategy.java @@ -91,6 +91,8 @@ private static Bounds intersection(Bounds box1, Bounds box2) { private static Collection getExisting(Class klass) { if (klass.isAssignableFrom(OsmDataLayer.class)) { + if (!MainApplication.isDisplayingMapView()) + return null; OsmDataLayer layer = MainApplication.getMap().mapView.getLayerManager().getEditLayer(); if (layer == null) { Collection layers = MainApplication.getMap().mapView.getLayerManager().getLayers();