Ignore:
Timestamp:
2021-07-12T13:33:02+02:00 (3 years ago)
Author:
Don-vip
Message:

fix NPE in TagMap constructor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/TagMap.java

    r16977 r18006  
    77import java.util.ArrayList;
    88import java.util.Arrays;
    9 import java.util.Collection;
    109import java.util.ConcurrentModificationException;
    1110import java.util.Iterator;
     
    7574            throw new UnsupportedOperationException();
    7675        }
    77 
    7876    }
    7977
     
    103101            return tags.length / 2;
    104102        }
    105 
    106103    }
    107104
     
    158155     * @since 10736
    159156     */
    160     public TagMap(Collection<Tag> tags) {
     157    public TagMap(Iterable<Tag> tags) {
     158        this.tags = EMPTY_TAGS;
    161159        for (Tag tag : tags) {
    162160            put(tag.getKey(), tag.getValue());
Note: See TracChangeset for help on using the changeset viewer.