failing to load plugins, return an empty map
This commit is contained in:
parent
2e46add991
commit
789e1a343f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue