We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2cebd9 commit 208b46dCopy full SHA for 208b46d
core/src/main/java/org/elasticsearch/plugins/PluginsService.java
@@ -276,6 +276,10 @@ static class Bundle {
276
// similar in impl to getPluginBundles, but DO NOT try to make them share code.
277
// we don't need to inherit all the leniency, and things are different enough.
278
static List<Bundle> getModuleBundles(Path modulesDirectory) throws IOException {
279
+ // damn leniency
280
+ if (Files.notExists(modulesDirectory)) {
281
+ return Collections.emptyList();
282
+ }
283
List<Bundle> bundles = new ArrayList<>();
284
try (DirectoryStream<Path> stream = Files.newDirectoryStream(modulesDirectory)) {
285
for (Path module : stream) {
0 commit comments