From fdb83ec3387ffe49761db813f381cd2fb3cc1735 Mon Sep 17 00:00:00 2001 From: Johannes Stelzer Date: Sun, 5 Jul 2015 21:21:43 +0200 Subject: [PATCH] Correct assertion for indicators parameter in CompositeHealthIndicator Closes gh-3417 --- .../boot/actuate/health/CompositeHealthIndicator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/CompositeHealthIndicator.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/CompositeHealthIndicator.java index 648ccc8545..fc51568a26 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/CompositeHealthIndicator.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/CompositeHealthIndicator.java @@ -52,7 +52,7 @@ public class CompositeHealthIndicator implements HealthIndicator { public CompositeHealthIndicator(HealthAggregator healthAggregator, Map indicators) { Assert.notNull(healthAggregator, "HealthAggregator must not be null"); - Assert.notNull(healthAggregator, "Indicators must not be null"); + Assert.notNull(indicators, "Indicators must not be null"); this.indicators = new LinkedHashMap(indicators); this.healthAggregator = healthAggregator; }