Details
Description
The following will generate a null pointer exception when it is in the project POM. (or potentially any pom, I don't know)
...
<profiles> <profile> <id>localdev</id> <activation> <os> <name>Windows XP</name> </os> <property> </property> </activation> <build> ...
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)