parent
5885afdf81
commit
5ee12a824f
|
@ -108,7 +108,7 @@ public class LdapProperties {
|
||||||
}
|
}
|
||||||
|
|
||||||
private int determinePort(Environment environment) {
|
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");
|
String localPort = environment.getProperty("local.ldap.port");
|
||||||
if (localPort != null) {
|
if (localPort != null) {
|
||||||
return Integer.valueOf(localPort);
|
return Integer.valueOf(localPort);
|
||||||
|
|
Loading…
Reference in New Issue