Skip to content

Commit

Permalink
Merge pull request #89 from mojohaus/issue/80
Browse files Browse the repository at this point in the history
#80 Fix NPE when no qualifier is present
  • Loading branch information
stefanseifert committed Feb 18, 2020
2 parents 310534c + fe15394 commit 2f4a9e4
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -25,6 +25,7 @@
*/

import java.util.List;
import java.util.Objects;

import org.apache.maven.artifact.ArtifactUtils;
import org.apache.maven.artifact.factory.ArtifactFactory;
Expand Down Expand Up @@ -80,7 +81,7 @@ public class ReleasedVersionMojo

private void defineVersionProperty( String name, String value )
{
defineProperty( propertyPrefix + '.' + name, value );
defineProperty( propertyPrefix + '.' + name, Objects.toString( value, "" ) );
}

private void defineVersionProperty( String name, int value )
Expand Down

0 comments on commit 2f4a9e4

Please sign in to comment.