maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michiel Kalkman (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (SUREFIRE-694) NPE when empty additionalClasspathElement
Date Fri, 04 Feb 2011 08:04:22 GMT
NPE when empty additionalClasspathElement
-----------------------------------------

                 Key: SUREFIRE-694
                 URL: http://jira.codehaus.org/browse/SUREFIRE-694
             Project: Maven Surefire
          Issue Type: Bug
          Components: JUnit 3.x support
    Affects Versions: 2.7.2
            Reporter: Michiel Kalkman
            Priority: Trivial


Just add to your pom something like:
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.7.2</version>
        <configuration>
        <additionalClasspathElements>
          <additionalClasspathElement>  </additionalClasspathElement>
         </additionalClasspathElements>

or

  <additionalClasspathElement>${abc}</additionalClasspathElement>

where ${abc} does not resolve.

This results in a npe:

[INFO] Trace
java.lang.NullPointerException
  at java.util.Hashtable.put(Hashtable.java:394)
  at java.util.Properties.setProperty(Properties.java:143)
  at org.apache.maven.surefire.booter.Classpath.setForkProperties(Classpath.java:139)
  at org.apache.maven.surefire.booter.ClasspathConfiguration.setForkProperties(ClasspathConfiguration.java:89)
  at org.apache.maven.plugin.surefire.booterclient.BooterSerializer.serialize(BooterSerializer.java:79)
  at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:180)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message