Skip to content

Commit

Permalink
Fix possible NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Nov 23, 2022
1 parent 43d1ba2 commit d1d3cb0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,10 @@ private int execute(CliRequest cliRequest) throws MavenExecutionRequestPopulatio
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);
}
}
}

Expand Down

0 comments on commit d1d3cb0

Please sign in to comment.