mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #44066 from nextcloud/pulsejet/ver-nc
files_versions: add missing null check
This commit is contained in:
commit
8a6ac51583
1 changed files with 5 additions and 0 deletions
|
|
@ -194,6 +194,11 @@ class FileEventsListener implements IEventListener {
|
|||
}
|
||||
|
||||
$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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue