Merge pull request #106 from xathien/master
Fix NPE on Gitlab push event
This commit is contained in:
commit
5715e667ab
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue