Skip to content

Commit

Permalink
Fixed NPE when converting old settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hylkevds committed Jan 9, 2023
1 parent 66db7de commit 1250efc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -24,6 +24,7 @@ FROST-Server version 2.1 and higher requires Java 17. This is because some libra
* Fixed #1246: phenomenonTime not serialised in CSV ResultFormatter.
* Fixed NPE in auth module on DatabaseStatus path.
* Improved consistency of 4xx logging. (pbaumard)
* Fixed handling of default settings.


## Release version 2.0.0
Expand Down
Expand Up @@ -80,6 +80,9 @@ public void migrateOldSettings(Properties properties) {

private void migrateOldSettings(Properties properties, String key, Map<String, ReplaceList> replaces) {
String oldValue = properties.getProperty(key);
if (oldValue == null) {
return;
}
ReplaceList newValues = replaces.get(oldValue);
if (newValues != null) {
LOGGER.warn("Converting settings of key '{}' with old value '{}'", key, oldValue);
Expand Down

0 comments on commit 1250efc

Please sign in to comment.