externals: prevent loading failure if externals are malformed

This commit is contained in:
TheRealNull
2020-03-12 22:31:16 -04:00
parent 07fc29808f
commit ce55c306c6

View File

@@ -253,6 +253,11 @@ class ExternalPluginManager
{
e.printStackTrace();
}
catch (StringIndexOutOfBoundsException e)
{
log.error("Error loading external repositories. They have been reset.");
openOSRSConfig.setExternalRepositories("OpenOSRS:https://raw.githubusercontent.com/open-osrs/plugin-hosting/master/");
}
this.updateManager = new UpdateManager(this.externalPluginManager, repositories);
}