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


Ignore:
Timestamp:
2013-01-07T13:09:19+01:00 (12 years ago)
Author:
Don-vip
Message:

fix #8331 - NPE in download task

File:
1 edited

Legend:

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

    r5654 r5663  
    268268                }
    269269                Area dataSourceArea = targetLayer.data.getDataSourceArea();
    270                 if (dataSourceArea != null) {
     270                if (dataSourceArea != null && currentBounds != null) {
    271271                    isUpdateData = dataSourceArea.contains(currentBounds.asRect());
    272272                }
Note: See TracChangeset for help on using the changeset viewer.