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; }