Skip to content

Commit

Permalink
Fix list handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlipp committed Apr 23, 2024
1 parent 6a686d9 commit 1cf0af7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions org.jgrapes.util/src/org/jgrapes/util/NightConfigStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ private void addPrefs(ConfigurationUpdate updEvt, String path,
}
if (e.getValue() instanceof Config) {
atPath.put(e.getKey(), toValueMap(e.getValue()));
} else if (e.getValue() instanceof List<?> values) {
atPath.put(e.getKey(), convertList(values));
} else {
atPath.put(e.getKey(), e.getValue());
}
Expand Down

0 comments on commit 1cf0af7

Please sign in to comment.