Ignore:
Timestamp:
2016-02-04T00:48:38+01:00 (8 years ago)
Author:
Don-vip
Message:

remote control: add more unit tests, robustness

File:
1 edited

Legend:

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

    r9214 r9732  
    273273                //
    274274                final OsmDataLayer layer = createNewLayer(newLayerName);
    275                 Main.main.addLayer(layer, computeBbox(bounds));
     275                if (Main.main != null)
     276                    Main.main.addLayer(layer, computeBbox(bounds));
    276277                return layer;
    277278            }
Note: See TracChangeset for help on using the changeset viewer.