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


Ignore:
Timestamp:
2020-04-12T22:31:36+02:00 (5 years ago)
Author:
simon04
Message:

see #8352, see #19075 - Presets: fix unit tests

File:
1 edited

Legend:

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

    r16277 r16282  
    101101            combobox.setSelectedItem(originalValue);
    102102        }
    103         if ("colour".equals(key) || key.startsWith("colour:") || key.endsWith(":colour")) {
     103        if (key != null && ("colour".equals(key) || key.startsWith("colour:") || key.endsWith(":colour"))) {
    104104            p.add(combobox, GBC.std().fill(GBC.HORIZONTAL));
    105105            JButton button = new JButton(new ChooseColorAction());
Note: See TracChangeset for help on using the changeset viewer.