#103122FileLinkHandler: false return value not taken into account
Description
With the latest security patch version 11.5.35 the following lines where added to “\TYPO3\CMS\Recordlist\LinkHandler\FileLinkHandler::render()”:
if ($selectedFolder->getStorage()->isFallbackStorage()) {
$selectedFolder = null;
}
The variable “$selectedFolder” can be “false”, because the previous line is “$selectedFolder = $this->getSelectedFolder($this->expandFolder);” and the return value of “getSelectedFolder()” can be a folder object or “false”. The “false” return value is not taken into account in the newly added code, which results in an exception.