Changeset 3066 in josm for trunk/src


Ignore:
Timestamp:
2010-03-01T23:13:13+01:00 (10 years ago)
Author:
mjulius
Message:

fix NPE caused by r3064

File:
1 edited

Legend:

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

    r3065 r3066  
    1111import org.openstreetmap.josm.Main;
    1212import org.openstreetmap.josm.data.Bounds;
     13import org.openstreetmap.josm.data.coor.LatLon;
    1314import org.openstreetmap.josm.data.osm.DataSet;
    1415import org.openstreetmap.josm.data.osm.DataSource;
     
    142143                // need to synthesize a download bounds lest the visual indication of downloaded
    143144                // area doesn't work
    144                 dataSet.dataSources.add(new DataSource(currentBounds, "OpenStreetMap server"));
     145                dataSet.dataSources.add(new DataSource(currentBounds != null ? currentBounds : new Bounds(new LatLon(0, 0)), "OpenStreetMap server"));
    145146            }
    146147
Note: See TracChangeset for help on using the changeset viewer.