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 9751349fce
commit 29c359d7e7

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