Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 17cb850
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/hudson/plugins/warnings/WarningsPublisher.java
Expand Up @@ -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

Expand Down

0 comments on commit 17cb850

Please sign in to comment.