#98071Type error within TYPO3\CMS\Backend\Controller\EditDocumentController::generatePreviewCode
Description
Within the class TYPO3\CMS\Backend\Controller\EditDocumentController::generatePreviewCode the following error can occurred
TYPO3\CMS\Backend\Controller\EditDocumentController::generatePreviewCode(): Return value must be of type string, null returned
The method \TYPO3\CMS\Backend\Routing\PreviewUriBuilder::buildImmediateActionElement can return null, but the method \TYPO3\CMS\Backend\Controller\EditDocumentController::generatePreviewCode must return an string.
This can haben, if the preview page ist not accessable.
Maybe a type cast fix these issue.
image.png