Pankraz76 commented on code in PR #2458: URL: https://github.com/apache/maven/pull/2458#discussion_r2134807718
########## impl/maven-core/src/main/java/org/apache/maven/project/MavenProject.java: ########## @@ -877,16 +879,11 @@ public void setArtifacts(Set<Artifact> artifacts) { */ public Set<Artifact> getArtifacts() { if (artifacts == null) { - if (artifactFilter == null || resolvedArtifacts == null) { - artifacts = new LinkedHashSet<>(); - } else { - artifacts = new LinkedHashSet<>(resolvedArtifacts.size() * 2); - for (Artifact artifact : resolvedArtifacts) { - if (artifactFilter.include(artifact)) { - artifacts.add(artifact); Review Comment: could not yet reproduce this with test. this needs to be investigated further. impl. is now null safe. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org