Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in 3.1.0-SNAPSHOT when no qualifier is present #80

Closed
veikokaap opened this issue Oct 16, 2019 · 0 comments · Fixed by #89
Closed

NPE in 3.1.0-SNAPSHOT when no qualifier is present #80

veikokaap opened this issue Oct 16, 2019 · 0 comments · Fixed by #89
Assignees
Milestone

Comments

@veikokaap
Copy link

When building a simple pom without a qualifier with goal released-version, then the plugin crashes with a null pointer.

Plugin declaration:

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>build-helper-maven-plugin</artifactId>
  <version>3.1.0-SNAPSHOT</version>
  <executions>
    <execution>
      <id>released-version</id>
      <goals>
        <goal>released-version</goal>
      </goals>
    </execution>
  </executions>
</plugin>

Exception:

Caused by: java.lang.NullPointerException
    at java.util.concurrent.ConcurrentHashMap.putVal (ConcurrentHashMap.java:1011)
    at java.util.concurrent.ConcurrentHashMap.put (ConcurrentHashMap.java:1006)
    at java.util.Properties.put (Properties.java:1316)
    at org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo.defineProperty (AbstractDefinePropertyMojo.java:47)
    at org.codehaus.mojo.buildhelper.ReleasedVersionMojo.defineVersionProperty (ReleasedVersionMojo.java:83)
    at org.codehaus.mojo.buildhelper.ReleasedVersionMojo.execute (ReleasedVersionMojo.java:128)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    ...
veikokaap pushed a commit to veikokaap/build-helper-maven-plugin that referenced this issue Oct 16, 2019
veikokaap pushed a commit to veikokaap/build-helper-maven-plugin that referenced this issue Oct 16, 2019
@stefanseifert stefanseifert self-assigned this Feb 14, 2020
@stefanseifert stefanseifert added this to the 3.1.0 milestone Feb 14, 2020
stefanseifert added a commit that referenced this issue Feb 18, 2020
#80 Fix NPE when no qualifier is present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants