diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-03-23 08:59:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-23 08:59:21 +0100 |
commit | a219fa587af77bcb5f9d0a9a9cd3b0e0134153ff (patch) | |
tree | 0a6c32301519e50e78d12317aaf93249356eb30e /apps | |
parent | 24ec9245861994285dcac13fee3afd07b91e3ac2 (diff) | |
parent | 8152189b095cee64ed2eb1b3f4add65b76f140ff (diff) | |
download | nextcloud-server-a219fa587af77bcb5f9d0a9a9cd3b0e0134153ff.tar.gz nextcloud-server-a219fa587af77bcb5f9d0a9a9cd3b0e0134153ff.zip |
Merge pull request #25776 from nextcloud/fix/sabre-file-checksum-no-file-info
Only write checksum if we have a valid file info
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/File.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php index c6213cdbc81..19bcb53d9cb 100644 --- a/apps/dav/lib/Connector/Sabre/File.php +++ b/apps/dav/lib/Connector/Sabre/File.php @@ -680,9 +680,12 @@ class File extends Node implements IFile { /** * Get the checksum for this file * - * @return string + * @return string|null */ public function getChecksum() { + if (!$this->info) { + return null; + } return $this->info->getChecksum(); } |