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


Ignore:
Timestamp:
2012-01-21T15:45:59+01:00 (8 years ago)
Author:
jttt
Message:

Fix tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/TaggingPresetNameTemplateList.java

    r4431 r4837  
    3131
    3232    private TaggingPresetNameTemplateList() {
    33         for (TaggingPreset tp: TaggingPresetPreference.taggingPresets) {
    34             if (tp.nameTemplate != null) {
    35                 presetsWithPattern.add(tp);
     33        if (TaggingPresetPreference.taggingPresets != null) {
     34            for (TaggingPreset tp: TaggingPresetPreference.taggingPresets) {
     35                if (tp.nameTemplate != null) {
     36                    presetsWithPattern.add(tp);
     37                }
    3638            }
    3739        }
Note: See TracChangeset for help on using the changeset viewer.