Merge pull request #759 from Zimgir/454
Fix exception when saving job config in certain cases.
This commit is contained in:
commit
bf5811804f
|
@ -8,6 +8,10 @@ public final class BranchFilterFactory {
|
|||
private BranchFilterFactory() { }
|
||||
|
||||
public static BranchFilter newBranchFilter(BranchFilterConfig config) {
|
||||
|
||||
if(config == null)
|
||||
return new AllBranchesFilter();
|
||||
|
||||
switch (config.getType()) {
|
||||
case NameBasedFilter:
|
||||
return new NameBasedFilter(config.getIncludeBranchesSpec(), config.getExcludeBranchesSpec());
|
||||
|
|
Loading…
Reference in New Issue