Changeset 6323 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2013-10-25T17:28:03+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #9171 - NullPointerException when hitting enter when Search Presets is empty

File:
1 edited

Legend:

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

    r6074 r6323  
    5858        if (buttonIndex == 0) {
    5959            TaggingPreset preset = selector.getSelectedPreset();
    60             preset.actionPerformed(null);
     60            if (preset != null) {
     61                preset.actionPerformed(null);
     62            }
    6163        }
    6264        selector.savePreferences();
Note: See TracChangeset for help on using the changeset viewer.