Ignore:
Timestamp:
2015-01-03T15:37:32+01:00 (9 years ago)
Author:
Don-vip
Message:

fix #10921 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/SelectionManager.java

    r7146 r7921  
    151151    @Override
    152152    public void mousePressed(MouseEvent e) {
    153         if (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() > 1) {
     153        if (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() > 1 && Main.main.getCurrentDataSet() != null) {
    154154            SelectByInternalPointAction.performSelection(Main.map.mapView.getEastNorth(e.getX(), e.getY()),
    155155                    (e.getModifiersEx() & MouseEvent.SHIFT_DOWN_MASK) > 0,
Note: See TracChangeset for help on using the changeset viewer.