You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2014/02/20 17:59:23 UTC
[jira] [Updated] (SLING-3142) NullPointerException with Java8 in
AbstractUsingBundleList
[ https://issues.apache.org/jira/browse/SLING-3142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz updated SLING-3142:
---------------------------------------
Labels: java8 (was: )
> NullPointerException with Java8 in AbstractUsingBundleList
> ----------------------------------------------------------
>
> Key: SLING-3142
> URL: https://issues.apache.org/jira/browse/SLING-3142
> Project: Sling
> Issue Type: Bug
> Components: Maven Plugins and Archetypes
> Affects Versions: Maven Launchpad Plugin 2.2.0
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Labels: java8
> Fix For: Maven Launchpad Plugin 2.2.2
>
>
> 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
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)