Changeset 16733 in josm for trunk/src


Ignore:
Timestamp:
2020-07-06T17:18:08+02:00 (4 years ago)
Author:
simon04
Message:

fix #19489 - NPE in ComboMultiSelect.getItemToSelect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/ComboMultiSelect.java

    r16691 r16733  
    352352            if (!usage.hadKeys() || PROP_FILL_DEFAULT.get() || isForceUseLastAsDefault()) {
    353353                // selected osm primitives are untagged or filling default feature is enabled
    354                 itemToSelect = getListEntry(def).getDisplayValue();
     354                PresetListEntry entry = getListEntry(def);
     355                itemToSelect = entry == null ? "" : entry.getDisplayValue();
    355356            } else {
    356357                // selected osm primitives are tagged and filling default feature is disabled
Note: See TracChangeset for help on using the changeset viewer.