maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <>
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
             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
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

        at java.util.Objects.requireNonNull(
        at java.util.ArrayList.removeAll(
        at org.apache.maven.shared.filtering.DefaultMavenFileFilter.getDefaultFi
        at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(Def

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

Root cause:
So let's do the null check in the maven-filtering codebase.

This message was sent by Atlassian JIRA

View raw message