You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2022/11/23 09:16:32 UTC
[maven-mvnd] branch master updated: Fix possible NullPointerException
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-mvnd.git
The following commit(s) were added to refs/heads/master by this push:
new d1d3cb0 Fix possible NullPointerException
d1d3cb0 is described below
commit d1d3cb0f65000c24e3e588c4f2958c75b86f9a4e
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Wed Nov 23 09:35:22 2022 +0100
Fix possible NullPointerException
---
daemon/src/main/java/org/apache/maven/cli/DaemonMavenCli.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/daemon/src/main/java/org/apache/maven/cli/DaemonMavenCli.java b/daemon/src/main/java/org/apache/maven/cli/DaemonMavenCli.java
index c4fc9e2..8108bb7 100644
--- a/daemon/src/main/java/org/apache/maven/cli/DaemonMavenCli.java
+++ b/daemon/src/main/java/org/apache/maven/cli/DaemonMavenCli.java
@@ -714,7 +714,10 @@ public class DaemonMavenCli {
logSummary(summary, references, "", cliRequest.showErrors);
if (exception instanceof LifecycleExecutionException) {
- failedProjects.add(((LifecycleExecutionException) exception).getProject());
+ MavenProject project = ((LifecycleExecutionException) exception).getProject();
+ if (project != null) {
+ failedProjects.add(project);
+ }
}
}