summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-10-13 15:34:48 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-10-21 14:59:40 +0000
commit5733fccdd10548ff0ea52b39fccfa29d7730e105 (patch)
treeff18451fd482c4f86939c277fd6f67e53edb54ad /lib
parentd2333d10810762cf0f83eddff1e7e2b48149c30a (diff)
downloadnextcloud-server-5733fccdd10548ff0ea52b39fccfa29d7730e105.tar.gz
nextcloud-server-5733fccdd10548ff0ea52b39fccfa29d7730e105.zip
fix null error in getUnencryptedSize
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Cache/CacheEntry.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/CacheEntry.php b/lib/private/Files/Cache/CacheEntry.php
index 8ac76acf6d1..3c93296ff62 100644
--- a/lib/private/Files/Cache/CacheEntry.php
+++ b/lib/private/Files/Cache/CacheEntry.php
@@ -137,7 +137,7 @@ class CacheEntry implements ICacheEntry {
if (isset($this->data['unencrypted_size']) && $this->data['unencrypted_size'] > 0) {
return $this->data['unencrypted_size'];
} else {
- return $this->data['size'];
+ return $this->data['size'] ?? 0;
}
}
}