Skip to content

Commit

Permalink
Fix JENKINS-15391 - NullPointerException on Tag publishing
Browse files Browse the repository at this point in the history
Use hudson.Util.fixNull to convert a null tagMessage to an empty string
  • Loading branch information
dt41045 committed Oct 3, 2012
1 parent 4817492 commit 6ec1432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/git/GitPublisher.java
Expand Up @@ -261,7 +261,7 @@ gitExe, new FilePath(workspace),
}
if (tagResult) {
final String tagName = environment.expand(t.getTagName());
final String tagMessage = environment.expand(t.getTagMessage());
final String tagMessage = hudson.Util.fixNull(environment.expand(t.getTagMessage()));
final String targetRepo = environment.expand(t.getTargetRepoName());

try {
Expand Down

0 comments on commit 6ec1432

Please sign in to comment.