failing to load plugins, return an empty map

This commit is contained in:
kimchy 2010-12-30 13:16:09 +02:00
parent 2e46add991
commit 789e1a343f
1 changed files with 1 additions and 0 deletions

View File

@ -187,6 +187,7 @@ public class PluginsService extends AbstractComponent {
pluginUrls = settings.getClassLoader().getResources("es-plugin.properties");
} catch (IOException e) {
logger.warn("failed to find plugins from classpath", e);
return ImmutableMap.of();
}
while (pluginUrls.hasMoreElements()) {
URL pluginUrl = pluginUrls.nextElement();