[ https://jira.codehaus.org/browse/MSHARED-319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed MSHARED-319. ---------------------------------- Resolution: Fixed Fix Version/s: maven-filtering-1.2 Assignee: Robert Scholte Fixed in [r1563467|http://svn.apache.org/r1563467] > 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 > Assignee: Robert Scholte > Fix For: maven-filtering-1.2 > > > {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)