Ignore:
Timestamp:
2009-10-28T20:14:07+01:00 (14 years ago)
Author:
Gubaer
Message:

fixed #3792: NPE when deleting the data layer while the deletion tool is active

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java

    r2328 r2343  
    8787        private Layer findMergeLayer() {
    8888            boolean merge = Main.pref.getBoolean("download.gps.mergeWithLocal", false);
    89             if (Main.map == null)
     89            if (!Main.isDisplayingMapView())   
    9090                return null;
    9191            Layer active = Main.map.mapView.getActiveLayer();
Note: See TracChangeset for help on using the changeset viewer.