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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user