mirror of
https://github.com/apache/maven-mvnd.git
synced 2026-01-14 07:03:54 +08:00
Fix possible NullPointerException
This commit is contained in:
@@ -720,7 +720,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