You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Wil Carmon (JIRA)" <ji...@apache.org> on 2019/05/11 22:52:00 UTC

[jira] [Created] (MPMD-288) NullPointerException when File.list() returns null

Wil Carmon created MPMD-288:
-------------------------------

             Summary: NullPointerException when File.list() returns null
                 Key: MPMD-288
                 URL: https://issues.apache.org/jira/browse/MPMD-288
             Project: Maven PMD Plugin
          Issue Type: Bug
          Components: PMD
    Affects Versions: 3.12.0
            Reporter: Wil Carmon


In [src/main/java/org/apache/maven/plugins/pmd/PmdReport.java|https://github.com/apache/maven-pmd-plugin/pull/11/files/6f7c735bc174d0f90bdb61f4f022de82c9ebcce6#diff-66e7aabcb9492d054a73cb75de5b728b]

 

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

[See related javadoc|https://docs.oracle.com/javase/8/docs/api/java/io/File.html#list--]

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}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)