Changeset 14827 in josm


Ignore:
Timestamp:
2019-03-03T10:43:02+01:00 (6 years ago)
Author:
GerdP
Message:

see #17327: work around to allow SortedMap in MapListSetting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/spi/preferences/MapListSetting.java

    r12882 r14827  
    77import java.util.List;
    88import java.util.Map;
     9import java.util.SortedMap;
    910
    1011/**
     
    4142            throw new IllegalArgumentException("Error: Null as list element in preference setting");
    4243        for (Map<String, String> map : value) {
    43             if (map.containsKey(null))
     44            if (!(map instanceof SortedMap) && map.containsKey(null))
    4445                throw new IllegalArgumentException("Error: Null as map key in preference setting");
    4546            if (map.containsValue(null))
Note: See TracChangeset for help on using the changeset viewer.