From a953907c0df554a6017c92122ef70b5061c5e051 Mon Sep 17 00:00:00 2001 From: Alexey Loubyansky Date: Sun, 12 Mar 2023 22:02:56 +0100 Subject: [PATCH] Fix NPE loading workspace modules --- .../bootstrap/resolver/maven/workspace/WorkspaceLoader.java | 3 +++ 1 file changed, 3 insertions(+) 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 d26b0ac5b8126..ea06a5bfc1f49 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,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) {