Skip to content

Commit

Permalink
Merge pull request #31791 from aloubyansky/fix-npe-loading-workspace-…
Browse files Browse the repository at this point in the history
…modules

Fix NPE loading workspace modules
  • Loading branch information
gsmet authored Mar 13, 2023
2 parents bb39d26 + 214f386 commit 24fc08c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ void setWorkspaceRootPom(Path rootPom) {

private LocalProject loadProject(final Path projectPom, String skipModule) throws BootstrapMavenException {
final Model rawModel = rawModel(projectPom);

if (rawModel == null) {
return null;
}
final Path parentPom = getParentPom(projectPom, rawModel);
final LocalProject parentProject = parentPom == null || rawModelCache.containsKey(parentPom.getParent()) ? null
: loadProject(parentPom, parentPom.getParent().relativize(projectPom.getParent()).toString());
Expand Down

0 comments on commit 24fc08c

Please sign in to comment.