diff --git a/typo3/sysext/core/Classes/Utility/GeneralUtility.php b/typo3/sysext/core/Classes/Utility/GeneralUtility.php
index a72328b415723d9d139246c06da32f8d29c056f8..089dc693ae735926fd830e4f8b9257f03bb84c93 100644
--- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php
+++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php
@@ -2362,7 +2362,7 @@ class GeneralUtility
                 // return FALSE for CGI-versions, but that is only as long as SCRIPT_NAME is set equal to PATH_INFO
                 // because of PHP_SAPI=='cgi' (see above)
                 if (!Environment::isRunningOnCgiServer()) {
-                    $retVal = $_SERVER['PATH_INFO'];
+                    $retVal = $_SERVER['PATH_INFO'] ?? '';
                 }
                 break;
             case 'TYPO3_REV_PROXY':