From 5ee12a824f70768b427de2ee8d34e4ec813abd87 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 12 Jan 2017 09:09:34 -0500 Subject: [PATCH] Fix assertion See gh-7962 --- .../springframework/boot/autoconfigure/ldap/LdapProperties.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/ldap/LdapProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/ldap/LdapProperties.java index f3ec7f5941..12898ec32d 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/ldap/LdapProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/ldap/LdapProperties.java @@ -108,7 +108,7 @@ public class LdapProperties { } private int determinePort(Environment environment) { - Assert.state(environment != null, "No local LDAP port configured"); + Assert.notNull(environment, "Environment must not be null"); String localPort = environment.getProperty("local.ldap.port"); if (localPort != null) { return Integer.valueOf(localPort);