summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/dav/lib/Connector/Sabre/File.php5
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();
}