Fix possible NullPointerException
@@ -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);
+ }
}
}
