Fixed a problem with mergeFrom() where a key that was explicitly mapped to null was taken to mean it had no mapping. Checking that the key has a mapping instead fixes problem.
This commit is contained in:
parent
d785caa5ca
commit
416b866c78
@ -274,7 +274,7 @@ public final class AppSettings extends HashMap<String, Object> {
|
||||
*/
|
||||
public void mergeFrom(AppSettings other) {
|
||||
for (String key : other.keySet()) {
|
||||
if (get(key) == null) {
|
||||
if( !this.containsKey(key) ) {
|
||||
put(key, other.get(key));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user