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-io.git
The following commit(s) were added to refs/heads/master by this push: new ddb119b Better NPE message. ddb119b is described below commit ddb119b95d822b7338c9156d5f8e8191d1bba889 Author: Gary Gregory <gardgreg...@gmail.com> AuthorDate: Thu Jan 28 14:25:36 2021 -0500 Better NPE message. --- .../java/org/apache/commons/io/filefilter/FileEqualsFileFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/io/filefilter/FileEqualsFileFilter.java b/src/main/java/org/apache/commons/io/filefilter/FileEqualsFileFilter.java index 8d82871..34d0750 100644 --- a/src/main/java/org/apache/commons/io/filefilter/FileEqualsFileFilter.java +++ b/src/main/java/org/apache/commons/io/filefilter/FileEqualsFileFilter.java @@ -41,7 +41,7 @@ public class FileEqualsFileFilter extends AbstractFileFilter { * @param file The file to match. */ public FileEqualsFileFilter(final File file) { - this.file = file; + this.file = Objects.requireNonNull(file, "file"); this.path = file.toPath(); }