Changeset 682 in josm for trunk


Ignore:
Timestamp:
2008-07-05T19:11:11+02:00 (16 years ago)
Author:
stoecker
Message:

fixed exception - closing bug #683

File:
1 edited

Legend:

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

    r627 r682  
    5858
    5959        public void download(DownloadAction action, double minlat, double minlon, double maxlat, double maxlon) {
    60                 Task task = new Task(action.dialog.newLayer.isSelected(), new BoundingBoxDownloader(minlat, minlon, maxlat, maxlon));
     60                Task task = new Task(action.dialog == null || action.dialog.newLayer.isSelected(), new BoundingBoxDownloader(minlat, minlon, maxlat, maxlon));
    6161                Main.worker.execute(task);
    6262    }
Note: See TracChangeset for help on using the changeset viewer.