Skip to content

Commit

Permalink
Merge pull request nextcloud#44066 from nextcloud/pulsejet/ver-nc
Browse files Browse the repository at this point in the history
files_versions: add missing null check
  • Loading branch information
pulsejet committed Mar 7, 2024
2 parents dc79591 + d49787d commit 8a6ac51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/files_versions/lib/Listener/FileEventsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ public function write_hook(Node $node): void {
}

$path = $this->getPathForNode($node);

if ($path === null) {
return;
}

$result = Storage::store($path);

// Store the result of the version creation so it can be used in post_write_hook.
Expand Down

0 comments on commit 8a6ac51

Please sign in to comment.