mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-09 15:09:23 +00:00
Merge pull request #377 from lanmaoxinqing/i347
NPE from InvalidatingPluginArtifactsCache, similar to #347
This commit is contained in:
@@ -43,6 +43,9 @@ public class InvalidatingPluginArtifactsCache extends DefaultPluginArtifactsCach
|
||||
|
||||
@Override
|
||||
public Stream<Path> getDependencyPaths() {
|
||||
if (record.getException() != null) {
|
||||
return Stream.empty();
|
||||
}
|
||||
return record.getArtifacts().stream().map(artifact -> artifact.getFile().toPath());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user