Ignore:
Timestamp:
2016-01-12T20:12:47+01:00 (8 years ago)
Author:
simon04
Message:

see #12237 - Preset search: fix NPE when having selected a preset which is no longer shown after filtering

To reproduce: Select a primitive, open the preset search, select the first preset, type nonsense in the filter box

File:
1 edited

Legend:

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

    r9389 r9422  
    5757        super.buttonAction(buttonIndex, evt);
    5858        if (buttonIndex == 0) {
    59             TaggingPreset preset = selector.getSelectedPreset();
     59            TaggingPreset preset = selector.getSelectedPresetAndUpdateClassification();
    6060            if (preset != null) {
    6161                preset.actionPerformed(null);
Note: See TracChangeset for help on using the changeset viewer.