Changeset 2013 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2009-08-30T18:53:36+02:00 (15 years ago)
Author:
stoecker
Message:

fix #3341 - NPE

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r1895 r2013  
    113113            if (dataSet == null)
    114114                return; // user canceled download or error occurred
     115            if (currentBounds == null) {
     116                return; // no data retrieved
     117            }
    115118            if (dataSet.allPrimitives().isEmpty()) {
    116119                progressMonitor.setErrorMessage(tr("No data imported."));
  • trunk/src/org/openstreetmap/josm/data/osm/DataSource.java

    r1169 r2013  
    1111        this.bounds = bounds;
    1212        this.origin = origin;
     13        if (bounds == null) {
     14            throw new NullPointerException();
     15        }
    1316    }
    1417
Note: See TracChangeset for help on using the changeset viewer.