mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Fix assertion
See gh-7962
This commit is contained in:
parent
5885afdf81
commit
5ee12a824f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user