Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Maven Launchpad Plugin 2.2.0
Description
When using the launchpad plugin with java 8 I get an NPE with:
Caused by: 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.getDefaultFilterWrappers(DefaultMavenFileFilter.java:215)
at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(DefaultMavenFileFilter.java:75)
at org.apache.sling.maven.projectsupport.AbstractUsingBundleListMojo.readSlingProperties(AbstractUsingBundleListMojo.java:411)
at org.apache.sling.maven.projectsupport.AbstractUsingBundleListMojo.getSlingProperties(AbstractUsingBundleListMojo.java:460)
It seems that while ArrayList#removeAll(null) does not throw with pre Java8 it now does - the javadocs clearly state that a NPE is thrown, so we should adjust our code