fix null error in getUnencryptedSize

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2022-10-13 15:34:48 +02:00 committed by backportbot-nextcloud[bot]
parent d2333d1081
commit 5733fccdd1

View file

@ -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;
}
}
}