Fix null pointer exception in user_ldap (#25062)

This commit is contained in:
Jörn Friedrich Dreyer 2016-06-21 16:30:48 +02:00 committed by Thomas Müller
parent 755c86e3a2
commit 704a993e37

View file

@ -732,7 +732,14 @@ class Access extends LDAPUtility implements IUserTools {
$user->unmark();
$user = $this->userManager->get($ocName);
}
if ($user !== null) {
$user->processAttributes($userRecord);
} else {
\OC::$server->getLogger()->debug(
"The ldap user manager returned null for $ocName",
['app'=>'user_ldap']
);
}
}
}