Skip to content

Commit

Permalink
[FIXED JENKINS-14163] Fix NPE on failure compiling exclude pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
mc1arke committed Mar 11, 2013
1 parent effd0b0 commit ee3cc0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/hudson/scm/AbstractCvs.java
Expand Up @@ -448,7 +448,8 @@ protected PollingResult compareRemoteRevisionWith(final AbstractProject<?, ?> pr
try {
excludePatterns.add(Pattern.compile(pattern.getPattern()));
} catch (PatternSyntaxException ex) {
launcher.getListener().getLogger().println("Pattern could not be compiled: " + ex.getMessage());
listener.getLogger().println("Pattern could not be compiled: " + pattern);
throw new RuntimeException("Polling could not completed since pattern could not be compiled", ex);
}
}

Expand Down

0 comments on commit ee3cc0a

Please sign in to comment.