diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/plugins/PluginsService.java b/modules/elasticsearch/src/main/java/org/elasticsearch/plugins/PluginsService.java index 55237b0c9d9..b1f46e433a6 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/plugins/PluginsService.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/plugins/PluginsService.java @@ -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();