Merge pull request #106 from xathien/master

Fix NPE on Gitlab push event
This commit is contained in:
bassrock 2015-10-11 22:22:10 -07:00
commit 5715e667ab
1 changed files with 37 additions and 37 deletions

View File

@ -156,11 +156,11 @@ public class GitLabPushTrigger extends Trigger<Job<?, ?>> {
}
public String getIncludeBranchesSpec() {
return this.includeBranchesSpec;
return this.includeBranchesSpec == null ? "" : this.includeBranchesSpec;
}
public String getExcludeBranchesSpec() {
return this.excludeBranchesSpec;
return this.excludeBranchesSpec == null ? "" : this.excludeBranchesSpec;
}
// executes when the Trigger receives a push request