maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Dangel (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (MPMD-288) NullPointerException when File.list() returns null
Date Mon, 20 May 2019 17:48:00 GMT

     [ https://issues.apache.org/jira/browse/MPMD-288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Dangel closed MPMD-288.
-------------------------------

> 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
>            Priority: Minor
>             Fix For: 3.13.0
>
>   Original Estimate: 1h
>          Time Spent: 10m
>  Remaining Estimate: 50m
>
> 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}}
>  
>  
> See my proposed fix here: [https://github.com/apache/maven-pmd-plugin/pull/11]



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

Mime
View raw message