Ticket #3341: null-bounds.patch
File null-bounds.patch, 1.3 KB (added by , 16 years ago) |
---|
-
src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
112 112 } 113 113 if (dataSet == null) 114 114 return; // user canceled download or error occurred 115 if (currentBounds == null) { 116 return; // no data retrieved 117 } 115 118 if (dataSet.allPrimitives().isEmpty()) { 116 119 progressMonitor.setErrorMessage(tr("No data imported.")); 117 120 // need to synthesize a download bounds lest the visual indication of downloaded -
src/org/openstreetmap/josm/data/osm/DataSource.java
10 10 public DataSource(Bounds bounds, String origin) { 11 11 this.bounds = bounds; 12 12 this.origin = origin; 13 if (bounds == null) { 14 throw new NullPointerException(); 15 } 13 16 } 14 17 15 18 @Override protected Object clone() throws CloneNotSupportedException {