mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-26 05:58:27 +00:00
Fix possible NullPointerException
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user