Issue Bug Closed

#103777\TYPO3\CMS\Core\Resource\AbstractFile::getSize returns null for files with a size of 0 byte

Wolfgang Klinger 05/02/24, 09:37 updated 10/15/24, 09:31

Description

\TYPO3\CMS\Core\Resource\AbstractFile::getSize
returns `null` (which leads to problems up in the chain of callers) even though the file is valid, and the file size is there, it’s just coincidentally 0 bytes (happens).
I see this as a bug.

        return $size ? (int)$size : null;

(check with `isset` should be a simple solution here)

Reviews 1