Ignore:
Timestamp:
2007-04-04T11:31:50+02:00 (19 years ago)
Author:
imi
Message:
  • fixed a NPE when hitting a mapmode shortcut after all layers have been closed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/actions/mapmode/MapMode.java

    r198 r208  
    5858         */
    5959        public void actionPerformed(ActionEvent e) {
    60                 Main.map.selectMapMode(this);
     60                if (Main.map != null)
     61                        Main.map.selectMapMode(this);
    6162        }
    6263
Note: See TracChangeset for help on using the changeset viewer.