sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SLING-3142) NullPointerException with Java8 in AbstractUsingBundleList
Date Wed, 02 Oct 2013 06:53:24 GMT
Carsten Ziegeler created SLING-3142:
---------------------------------------

             Summary: 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)

Mime
View raw message