Changeset 12560 in josm


Ignore:
Timestamp:
2017-08-02T23:06:33+02:00 (3 months ago)
Author:
Don-vip
Message:

see #15102 - fix NPE

File:
1 edited

Legend:

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

    r11554 r12560  
    9494    @Override
    9595    protected void updateEnabledState() {
    96         setEnabled(getLayerManager().getEditDataSet() != null && transferHandler.isDataAvailable());
     96        setEnabled(getLayerManager().getEditDataSet() != null && transferHandler != null && transferHandler.isDataAvailable());
    9797    }
    9898
Note: See TracChangeset for help on using the changeset viewer.