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


Ignore:
Timestamp:
2009-03-18T16:54:28+01:00 (16 years ago)
Author:
stoecker
Message:

fix #2282 - NPE

File:
1 edited

Legend:

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

    r1169 r1502  
    1919    public void actionPerformed(ActionEvent e) {
    2020        Main.pref.put("draw.rawgps.lines", !Main.pref.getBoolean("draw.rawgps.lines"));
    21         Main.map.mapView.repaint();
     21        if(Main.map != null)
     22            Main.map.mapView.repaint();
    2223    }
    2324}
Note: See TracChangeset for help on using the changeset viewer.