Fix assertion

See gh-7962
This commit is contained in:
Stephane Nicoll 2017-01-12 09:09:34 -05:00
parent 5885afdf81
commit 5ee12a824f

View File

@ -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);