Fix from 2.11.0.M1-rc1: revert change from commit on 11/Nov/2018 that ended up causing lots of ClassCastException
@@ -142,9 +142,9 @@ public class Preferences
for (String key : map.keySet()) {
key = TextUtil.replaceEntities( key );
// Sometimes this is not a String as it comes from the Cookie set by Javascript
- String value = map.get(key);
+ Object value = map.get(key);
if (value != null) {
- prefs.put( key, value );
+ prefs.put( key, value.toString() );
}
}
}
