Catch ConfigException.Missing in BotConfig#getAliases(string)
This commit is contained in:
@@ -310,7 +310,7 @@ public class BotConfig
|
|||||||
{
|
{
|
||||||
return aliases.getStringList(command).toArray(new String[0]);
|
return aliases.getStringList(command).toArray(new String[0]);
|
||||||
}
|
}
|
||||||
catch(NullPointerException e)
|
catch(NullPointerException | ConfigException.Missing e)
|
||||||
{
|
{
|
||||||
return new String[0];
|
return new String[0];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user