Fix null pointer exception when using LDAP