Changeset 10102 in josm


Ignore:
Timestamp:
2016-04-03T15:19:56+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #12720 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java

    r9576 r10102  
    136136                Transferable old = Utils.getTransferableContent(sysSel);
    137137                editorComponent.select(start, end);
    138                 sysSel.setContents(old, null);
     138                if (old != null) {
     139                    sysSel.setContents(old, null);
     140                }
    139141            } else {
    140142                editorComponent.select(start, end);
Note: See TracChangeset for help on using the changeset viewer.