Fix null pointer exception in user_ldap
This commit is contained in:
parent
826654bb70
commit
11c1d399af
|
@ -730,7 +730,14 @@ class Access extends LDAPUtility implements user\IUserTools {
|
|||
$user->unmark();
|
||||
$user = $this->userManager->get($ocName);
|
||||
}
|
||||
$user->processAttributes($userRecord);
|
||||
if ($user !== null) {
|
||||
$user->processAttributes($userRecord);
|
||||
} else {
|
||||
\OC::$server->getLogger()->debug(
|
||||
"The ldap user manager returned null for $ocName",
|
||||
['app'=>'user_ldap']
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue