diff options
author | Varun Patil <varunpatil@ucla.edu> | 2024-03-07 16:30:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 16:30:51 -0500 |
commit | 8a6ac51583094ebd13f8858726cb94d3ecc37668 (patch) | |
tree | c691c69f4d5263f85021ae0926b5cebf5f7c1eb0 | |
parent | dc79591ada3552b250d82f1ee0335e66ad1f2c13 (diff) | |
parent | d49787d004d31572591413f6eddc8fce3de53ad4 (diff) | |
download | nextcloud-server-8a6ac51583094ebd13f8858726cb94d3ecc37668.tar.gz nextcloud-server-8a6ac51583094ebd13f8858726cb94d3ecc37668.zip |
Merge pull request #44066 from nextcloud/pulsejet/ver-nc
files_versions: add missing null check
-rw-r--r-- | apps/files_versions/lib/Listener/FileEventsListener.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_versions/lib/Listener/FileEventsListener.php b/apps/files_versions/lib/Listener/FileEventsListener.php index 84cffc2c1fd..0f795669d30 100644 --- a/apps/files_versions/lib/Listener/FileEventsListener.php +++ b/apps/files_versions/lib/Listener/FileEventsListener.php @@ -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. |