This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-clean-plugin.git
The following commit(s) were added to refs/heads/master by this push: new 4ef99c4 [MCLEAN-104] Prevent NPE in fast mode and quiet build (#23) 4ef99c4 is described below commit 4ef99c4f05688ecbe9dcc6804796499332cf7cb3 Author: Falko Modler <fa...@users.noreply.github.com> AuthorDate: Tue Jan 17 10:23:57 2023 +0100 [MCLEAN-104] Prevent NPE in fast mode and quiet build (#23) --- src/main/java/org/apache/maven/plugins/clean/Cleaner.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugins/clean/Cleaner.java b/src/main/java/org/apache/maven/plugins/clean/Cleaner.java index 0434af5..5aa3225 100644 --- a/src/main/java/org/apache/maven/plugins/clean/Cleaner.java +++ b/src/main/java/org/apache/maven/plugins/clean/Cleaner.java @@ -441,7 +441,9 @@ class Cleaner { } if (!FAST_MODE_DEFER.equals(fastMode)) { try { - cleaner.logInfo.log("Waiting for background file deletion"); + if (cleaner.logInfo != null) { + cleaner.logInfo.log("Waiting for background file deletion"); + } while (status != STOPPED) { wait(); }