PLT-2798 Config sanitation fails when no LDAP Settings are present in config.json (#2882)

Этот коммит содержится в:
enahum
2016-05-05 16:36:17 -03:00
коммит произвёл Corey Hulen
родитель ed3162a59d
Коммит 3a0734ec9d

Просмотреть файл

@@ -615,7 +615,7 @@ func (o *Config) GetSanitizeOptions() map[string]bool {
}
func (o *Config) Sanitize() {
if len(*o.LdapSettings.BindPassword) > 0 {
if &o.LdapSettings != nil && len(*o.LdapSettings.BindPassword) > 0 {
*o.LdapSettings.BindPassword = FAKE_SETTING
}