Skip to content
Permalink
Browse files

Fix JENKINS-15391 - NullPointerException on Tag publishing

Use hudson.Util.fixNull to convert a null tagMessage to an empty string
  • Loading branch information
algoRhythm99 committed Oct 3, 2012
1 parent 4817492 commit 6ec14325a21a4519cab8e0dd475894d3159138ba
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/hudson/plugins/git/GitPublisher.java
@@ -261,7 +261,7 @@ public Boolean invoke(File 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 {

0 comments on commit 6ec1432

Please sign in to comment.
You can’t perform that action at this time.