Do not explode on illegal unicode chat in settings

Prevent client shutting down from main method in case settings contain
illegal unicode string due to config file corruption.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-07-08 18:44:42 +02:00
parent 029e3b4b57
commit ac0de0aee5

View File

@@ -185,7 +185,7 @@ public class ConfigManager
{
log.debug("Unable to load settings - no such file");
}
catch (IOException ex)
catch (IllegalArgumentException | IOException ex)
{
log.warn("Unable to load settings", ex);
}