Catch ConfigException.Missing in BotConfig#getAliases(string)

This commit is contained in:
MichailiK 2019-10-26 09:39:56 +02:00
parent f4a937cc6b
commit 179f447a70

View file

@ -310,7 +310,7 @@ public class BotConfig
{
return aliases.getStringList(command).toArray(new String[0]);
}
catch(NullPointerException e)
catch(NullPointerException | ConfigException.Missing e)
{
return new String[0];
}