#87527Exception on creating file with disallowed extension
Description
How to reproduce:
Create a text file in the file module with a disallowed extension, e.g. .shtml
The creation is denied, but the getFileEditRedirect throws an exception, because the param is not a file but already null
Argument 1 passed to TYPO3\CMS\Backend\Controller\File\FileController::getFileEditRedirect() must be an instance of TYPO3\CMS\Core\Resource\File, null given, called in /var/www/dist/typo3_src/typo3/sysext/backend/Classes/Controller/File/FileController.php on line 172 TypeError thrown in file /var/www/dist/typo3_src/typo3/sysext/backend/Classes/Controller/File/FileController.php in line 190.
Happened on TYPO3 version 8.7.24