You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2013/10/04 07:57:41 UTC
[jira] [Resolved] (SLING-3142) NullPointerException with Java8 in
AbstractUsingBundleList
[ https://issues.apache.org/jira/browse/SLING-3142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-3142.
-------------------------------------
Resolution: Fixed
Fixed by passing in an empty list instead of null
> 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
> 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#6144)