maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@codehaus.org>
Subject [jira] (MSHARED-319) Filtering throws NPE when using JDK8
Date Sat, 01 Feb 2014 20:37:57 GMT
Robert Scholte created MSHARED-319:
--------------------------------------

             Summary: Filtering throws NPE when using JDK8
                 Key: MSHARED-319
                 URL: https://jira.codehaus.org/browse/MSHARED-319
             Project: Maven Shared Components
          Issue Type: Bug
          Components: maven-filtering
    Affects Versions: maven-filtering-1.1
         Environment: Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17
17:22:22+0200)
Maven home: D:\apache-maven-3.1.1\bin\..
Java version: 1.8.0, vendor: Oracle Corporation
Java home: c:\Program Files\Java\jdk1.8.0\jre
Default locale: nl_NL, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
            Reporter: Robert Scholte


{code}
java.lang.NullPointerException
        at java.util.Objects.requireNonNull(Objects.java:203)
        at java.util.ArrayList.removeAll(ArrayList.java:674)
        at org.apache.maven.shared.filtering.DefaultMavenFileFilter.getDefaultFi
lterWrappers(DefaultMavenFileFilter.java:217)
        at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(Def
aultMavenFileFilter.java:76)
{code}

This happens when the following situation occurs:
{code}
// request.getFileFilters()  is null
buildFilters.removeAll( request.getFileFilters() );
{code}

Root cause: https://bugs.openjdk.java.net/browse/JDK-8015656
So let's do the null check in the maven-filtering codebase.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message