From 214f3861b9c0673b89372dc3adda1ef5b3d6d646 Mon Sep 17 00:00:00 2001 From: Alexey Loubyansky Date: Sun, 12 Mar 2023 21:43:01 +0100 Subject: [PATCH] Fix NPE loading workspace modules --- .../bootstrap/resolver/maven/workspace/WorkspaceLoader.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/independent-projects/bootstrap/maven-resolver/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/WorkspaceLoader.java b/independent-projects/bootstrap/maven-resolver/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/WorkspaceLoader.java index 588b2766a00f9..6416b747941dd 100644 --- a/independent-projects/bootstrap/maven-resolver/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/WorkspaceLoader.java +++ b/independent-projects/bootstrap/maven-resolver/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/WorkspaceLoader.java @@ -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());