Uploaded image for project: 'Maven PMD Plugin'
  1. Maven PMD Plugin
  2. MPMD-288

NullPointerException when File.list() returns null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.12.0
    • 3.13.0
    • PMD
    • None

    Description

      In src/main/java/org/apache/maven/plugins/pmd/PmdReport.java

       

      line 772 throws NullPointerException when File.list() returns null

      See related javadoc

      For me this occurs on jar files like ~/.m2/repository/org/apache/logging/log4j/log4j-api/2.11.1/log4j-api-2.11.1.jar

       

       

      See my proposed fix here: https://github.com/apache/maven-pmd-plugin/pull/11

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wcarmon Wil Carmon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Time Spent - 10m Remaining Estimate - 50m
                  50m
                  Logged:
                  Time Spent - 10m Remaining Estimate - 50m
                  10m