| 1 | Index: src/org/openstreetmap/josm/plugins/remotecontrol/RequestProcessor.java
|
|---|
| 2 | ===================================================================
|
|---|
| 3 | --- src/org/openstreetmap/josm/plugins/remotecontrol/RequestProcessor.java (revision 16908)
|
|---|
| 4 | +++ src/org/openstreetmap/josm/plugins/remotecontrol/RequestProcessor.java (working copy)
|
|---|
| 5 | @@ -147,7 +147,9 @@
|
|---|
| 6 | throw new LoadDeniedException();
|
|---|
| 7 |
|
|---|
| 8 | // find out whether some data has already been downloaded
|
|---|
| 9 | - Area present = Main.main.getCurrentDataSet().getDataSourceArea();
|
|---|
| 10 | + Area present = null;
|
|---|
| 11 | + if (Main.main.getCurrentDataSet() != null)
|
|---|
| 12 | + present = Main.main.getCurrentDataSet().getDataSourceArea();
|
|---|
| 13 | if (present != null && !present.isEmpty()) {
|
|---|
| 14 | Area toDownload = new Area(new Rectangle2D.Double(minlon,minlat,maxlon-minlon,maxlat-minlat));
|
|---|
| 15 | toDownload.subtract(present);
|
|---|