sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <>
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
             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(
	at java.util.ArrayList.removeAll(
	at org.apache.maven.shared.filtering.DefaultMavenFileFilter.getDefaultFilterWrappers(
	at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(

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

View raw message