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 e444acf Better NPE message. e444acf is described below commit e444acf4a0e9696e6eb04de0f9bf655a5a653914 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Jan 27 08:55:49 2022 -0500 Better NPE message. --- src/main/java/org/apache/commons/io/FileUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/io/FileUtils.java b/src/main/java/org/apache/commons/io/FileUtils.java index f042cc6..0f18096 100644 --- a/src/main/java/org/apache/commons/io/FileUtils.java +++ b/src/main/java/org/apache/commons/io/FileUtils.java @@ -2449,7 +2449,7 @@ public class FileUtils { * @since 2.12.0 */ public static OutputStream newOutputStream(final File file, final boolean append) throws IOException { - return PathUtils.newOutputStream(file.toPath(), append); + return PathUtils.newOutputStream(Objects.requireNonNull(file, "file").toPath(), append); } /**