Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable26] fix(files_versions): don't call getUid() on null #41552

Merged
merged 1 commit into from Nov 16, 2023

Conversation

backportbot-nextcloud[bot]
Copy link

Backport of #41518

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
*/
private function getPathForNode(Node $node): ?string {
try {
return $this->rootFolder
->getUserFolder(\OC_User::getUser())
->getRelativePath($node->getPath());
} catch (\Throwable $ex) {
$owner = $node->getOwner();
if ($owner === null) {

Check notice

Code scanning / Psalm

DocblockTypeContradiction Note

OCP\IUser does not contain null
@solracsf solracsf merged commit b0b0408 into stable26 Nov 16, 2023
37 checks passed
@solracsf solracsf deleted the backport/41518/stable26 branch November 16, 2023 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants