Opened 6 years ago

Last modified 6 years ago

#17327 closed defect

Class MapListSetting doesn't allow to store a TreeMap in preferences — at Version 1

Reported by: GerdP Owned by: team
Priority: normal Milestone: 19.04
Component: Core Version:
Keywords: preferences Cc: michael2402

Description (last modified by Don-vip)

Is that intended? The method consistencyTest() uses

            if (map.containsKey(null))
                throw new IllegalArgumentException("Error: Null as map key in preference setting");

which causes a NPE when used with a TreeMap no matter what the map contains.

Change History (1)

comment:1 by Don-vip, 6 years ago

Cc: wiktorn added
Description: modified (diff)
Keywords: preferences added

I believe Wiktor plans to work on the preferences system :)

Note: See TracTickets for help on using tickets.