Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-1017

null passed to DependencyFilter in EclipseAetherFilterTransformerTest

    XMLWordPrintableJSON

Details

    Description

      The tests in EclipseAetherFilterTransformerTest.java contain calls like `assertTrue( dependencyFilter.accept( newDependencyNode( "g:a:v", "compile" ), null ) );`.
      The API of DependencyFilter states that the second parameter may not be null:
      https://maven.apache.org/resolver/maven-resolver-api/apidocs/org/eclipse/aether/graph/DependencyFilter.html
      The issue was encountered when executing the tests with maven-resolver-util version 1.7.3 and causes maven build to fail because maven-resolver added requireNonNull in some release after 1.4.2 which is the declared dependency.

      Attaching proposed patch.

      Attachments

        Activity

          People

            michael-o Michael Osipov
            mkoncek Marián Konček
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: