From 3a0734ec9d3f8f8e6e9090e45138a11ca838d9ff Mon Sep 17 00:00:00 2001 From: enahum Date: Thu, 5 May 2016 16:36:17 -0300 Subject: PLT-2798 Config sanitation fails when no LDAP Settings are present in config.json (#2882) --- model/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'model') diff --git a/model/config.go b/model/config.go index 01b4a886a..eb25948fd 100644 --- a/model/config.go +++ b/model/config.go @@ -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 } -- cgit v1.2.3-1-g7c22