mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix(files_versions): Add missing null check
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
This commit is contained in:
parent
20953d0374
commit
d49787d004
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