Remove invalid properties from map on property load

In order to not have config file flooded with invalid and corrupted
properties in case of file corruption, remove all these invalid
properties from property map on configuration load.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-10-10 16:13:05 +02:00
parent b0fbc09013
commit 4a5e4491c9

View File

@@ -199,6 +199,7 @@ public class ConfigManager
if (split.length != 2)
{
log.debug("Properties key malformed!: {}", groupAndKey);
properties.remove(groupAndKey);
return;
}