Skip to content

Commit

Permalink
Avoid null pointer exception when building containers
Browse files Browse the repository at this point in the history
ArtifactResultBuildItem#path is set to `null` for Artifact results of
type `native-container` and `jar-container`

Follow up to quarkusio#31166
Closes quarkusio#32418
  • Loading branch information
zakkak authored and holly-cummins committed Apr 20, 2023
1 parent 216f87c commit 5fae8c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void execute() {
LOGGER.warn("AugmentResult.results = null");
} else {
LOGGER.info("AugmentResult.results = {}", results.stream().map(ArtifactResult::getPath)
.map(Object::toString).collect(Collectors.joining("\n ", "\n ", "")));
.map(r -> r == null ? "null" : r.toString()).collect(Collectors.joining("\n ", "\n ", "")));
}
JarResult jar = result.getJar();
LOGGER.info("AugmentResult:");
Expand Down

0 comments on commit 5fae8c3

Please sign in to comment.