NPE from InvalidatingProjectArtifactsCache when building a Quarkus deployment module from a tag, fixes #347

This commit is contained in:
Guillaume Nodet
2021-02-15 17:28:42 +01:00
parent 4c4b961fb5
commit 9c8d8b9754

View File

@@ -45,6 +45,9 @@ public class InvalidatingProjectArtifactsCache extends DefaultProjectArtifactsCa
@Override
public Stream<Path> getDependencyPaths() {
if (record.getException() != null) {
return Stream.empty();
}
return record.getArtifacts().stream()
.map(Artifact::getFile)
.filter(Objects::nonNull)