mirror of
https://github.com/apache/maven-mvnd.git
synced 2026-01-28 01:09:30 +08: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