maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Updated: (MNG-3810) Null Pointer Exception when Activation Profile Property is Empty
Date Sun, 02 Nov 2008 22:44:51 GMT

     [ http://jira.codehaus.org/browse/MNG-3810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benjamin Bentmann updated MNG-3810:
-----------------------------------

    Affects Version/s:     (was: 2.0.9)
                       3.0-alpha-1

> Null Pointer Exception when Activation Profile Property is Empty
> ----------------------------------------------------------------
>
>                 Key: MNG-3810
>                 URL: http://jira.codehaus.org/browse/MNG-3810
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 3.0-alpha-1
>            Reporter: Chris Pall
>            Priority: Trivial
>
> The following will generate a null pointer exception when it is in the project POM. (or
potentially any pom, I don't know)
> ...
> {code:xml}
> <profiles>
>   <profile>
>     <id>localdev</id>
>     <activation>
>       <os>
>         <name>Windows XP</name>
>       </os>
>       <property>
>       </property>
>     </activation>
>     <build>
> ...
> {code}
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.maven.profiles.activation.SystemPropertyProfileActivator.isActive(SystemPropertyProfileActivator.java:49)
> 	at org.apache.maven.profiles.DefaultProfileManager.isActive(DefaultProfileManager.java:296)
> 	at org.apache.maven.profiles.DefaultProfileManager.getActiveProfiles(DefaultProfileManager.java:222)
> 	at org.apache.maven.profiles.build.DefaultProfileAdvisor.getArtifactRepositoriesFromActiveProfiles(DefaultProfileAdvisor.java:182)
> 	at org.apache.maven.profiles.build.DefaultProfileAdvisor.getArtifactRepositoriesFromActiveProfiles(DefaultProfileAdvisor.java:233)
> 	at org.apache.maven.project.build.model.DefaultModelLineageBuilder.loadActiveProfileRepositories(DefaultModelLineageBuilder.java:306)
> 	at org.apache.maven.project.build.model.DefaultModelLineageBuilder.updateRepositorySet(DefaultModelLineageBuilder.java:256)
> 	at org.apache.maven.project.build.model.DefaultModelLineageBuilder.buildModelLineage(DefaultModelLineageBuilder.java:125)
> 	at org.apache.maven.extension.DefaultBuildExtensionScanner.buildModelLineage(DefaultBuildExtensionScanner.java:425)
> 	at org.apache.maven.extension.DefaultBuildExtensionScanner.scanInternal(DefaultBuildExtensionScanner.java:137)
> 	at org.apache.maven.extension.DefaultBuildExtensionScanner.scanForBuildExtensions(DefaultBuildExtensionScanner.java:107)
> 	at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:275)
> 	at org.apache.maven.DefaultMaven.createReactorManager(DefaultMaven.java:103)
> 	at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:160)
> 	at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
> 	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
> 	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
> 	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:52)
> {noformat}

-- 
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