Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[JENKINS-12307] Handle null values in constructor if user does not
select a log file or file parser.
  • Loading branch information
uhafner committed May 31, 2012
1 parent 324d43d commit 17cb850e429c27d6079ffdad9c9e89ab34426c4f
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/main/java/hudson/plugins/warnings/WarningsPublisher.java
@@ -134,8 +134,12 @@ public WarningsPublisher(final String healthy, final String unHealthy, final Str
canRunOnFailed, shouldDetectModules, canComputeNew, PLUGIN_NAME);
this.includePattern = StringUtils.stripToNull(includePattern);
this.excludePattern = StringUtils.stripToNull(excludePattern);
this.consoleParsers.addAll(consoleParsers);
this.parserConfigurations.addAll(parserConfigurations);
if (consoleParsers != null) {
this.consoleParsers.addAll(consoleParsers);
}
if (parserConfigurations != null) {
this.parserConfigurations.addAll(parserConfigurations);
}
}
// CHECKSTYLE:ON

0 comments on commit 17cb850

Please sign in to comment.