Skip to content

Commit

Permalink
Merge pull request #29 from dwnusbaum/JENKINS-44486
Browse files Browse the repository at this point in the history
[JENKINS-44486] Prevent UnsupportedOperationException when installing plugins with custom health checks.
  • Loading branch information
stephenc committed Jan 27, 2018
2 parents 987c6db + 8487d1b commit 8cbd81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/jenkins/metrics/api/Metrics.java
Expand Up @@ -603,7 +603,7 @@ private void execute(TaskListener listener) throws IOException, InterruptedExcep
reindexAccessKeys();
HealthCheckRegistry registry = healthCheckRegistry();
// update the active health checks
Set<String> defined = registry.getNames();
Set<String> defined = new HashSet<String>(registry.getNames());
Set<String> removed = new HashSet<String>(defined);
Jenkins jenkins = Jenkins.getInstance();
if (jenkins != null) {
Expand Down

0 comments on commit 8cbd81e

Please sign in to comment.