This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
The following commit(s) were added to refs/heads/master by this push: new d5a61a7d Check path fixture for existence (GitHub) new f5e0843a Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-bcel.git d5a61a7d is described below commit d5a61a7dac98cc41cd23dcc975ca71218e53fa9a Author: Gary David Gregory (Code signing key) <ggreg...@apache.org> AuthorDate: Tue Nov 15 08:51:32 2022 -0500 Check path fixture for existence (GitHub) --- src/test/java/org/apache/bcel/generic/JavaHome.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/apache/bcel/generic/JavaHome.java b/src/test/java/org/apache/bcel/generic/JavaHome.java index cdb24809..0b348511 100644 --- a/src/test/java/org/apache/bcel/generic/JavaHome.java +++ b/src/test/java/org/apache/bcel/generic/JavaHome.java @@ -68,7 +68,7 @@ public class JavaHome { final FileVisitOption... options) { try { // TODO Replace with Apache Commons IO UncheckedFiles later. - return Files.find(start, maxDepth, matcher, options); + return Files.exists(start) ? Files.find(start, maxDepth, matcher, options) : Stream.empty(); } catch (final IOException e) { throw new UncheckedIOException(e); }