Skip to content

Commit

Permalink
Merge pull request #22 from jenkinsci/bugfix/JENKINS-34544
Browse files Browse the repository at this point in the history
NPE After update to 0.5.0
  • Loading branch information
klimas7 committed May 2, 2016
2 parents 11074b5 + 0e83d1b commit b1cdf26
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -310,7 +310,7 @@ public Map<String, String> generateContents(AbstractProject<?, ?> project, GitSC
Pattern branchFilterPattern;
try {
branchFilterPattern = Pattern.compile(branchFilter);
} catch (PatternSyntaxException e) {
} catch (Exception e) {
LOGGER.log(Level.INFO, "Specified branchFilter is not a valid regex. Setting to '.*'", e.getMessage());
errorMessage = "Specified branchFilter is not a valid regex. Setting to '.*'";
branchFilterPattern = Pattern.compile(".*");
Expand Down

0 comments on commit b1cdf26

Please sign in to comment.