Changeset 3638 in josm


Ignore:
Timestamp:
Oct 24, 2010 10:36:52 AM (3 years ago)
Author:
jttt
Message:

Fix #5562 error when using "search template" (F3) with Preset for Steps

File:
1 edited

Legend:

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

    r3581 r3638  
    121121                } else if (item instanceof Key) { 
    122122                    tags.add(((Key) item).key); 
    123                     tags.add(((Key) item).value); 
     123                    String value = ((Key) item).value; 
     124                    if (value != null) { 
     125                        tags.add(value); 
     126                    } 
    124127                } else if (item instanceof Text) { 
    125128                    tags.add(((Text) item).key); 
Note: See TracChangeset for help on using the changeset viewer.