Fix assertion
See gh-7962
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user