Skip to content

Commit

Permalink
Merge pull request #31793 from aloubyansky/2.16-fix-npe-loading-works…
Browse files Browse the repository at this point in the history
…pace-modules

[2.16] Fix NPE loading workspace modules
  • Loading branch information
gsmet authored Mar 13, 2023
2 parents 0ab82d3 + a953907 commit 3a81f62
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ void setWorkspaceRootPom(Path rootPom) {

private LocalProject loadProject(Path projectPom, String skipModule) throws BootstrapMavenException {
final Model rawModel = rawModel(projectPom);
if (rawModel == null) {
return null;
}
final LocalProject parentProject = loadParentProject(projectPom, rawModel);
final LocalProject project = project(projectPom);
if (project == null) {
Expand Down

0 comments on commit 3a81f62

Please sign in to comment.