Fix null pointer exception in user_ldap (#25062)
This commit is contained in:
parent
755c86e3a2
commit
704a993e37
1 changed files with 8 additions and 1 deletions
|
@ -732,7 +732,14 @@ class Access extends LDAPUtility implements 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 a new issue