Changeset 2271 in josm


Ignore:
Timestamp:
2009-10-10T22:51:25+02:00 (14 years ago)
Author:
stoecker
Message:

fix #3685 - NPE

File:
1 edited

Legend:

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

    r2256 r2271  
    5252
    5353    public void actionPerformed(ActionEvent e) {
    54         if (!isEnabled())
     54        if (!isEnabled() || Main.map == null || Main.map.mapView == null)
    5555            return;
    5656        OsmDataLayer layer = Main.map.mapView.getEditLayer();
     57        if (layer == null)
     58            return;
    5759        Collection<OsmPrimitive> primitives = layer.data.getSelected();
    5860        downloadReferrers(primitives);
Note: See TracChangeset for help on using the changeset viewer.