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 #31166
Closes #32418
  • Loading branch information
zakkak committed Apr 7, 2023
1 parent 501aa17 commit 9df8ba7
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 9df8ba7

Please sign in to comment.