diff --git a/typo3/sysext/core/Classes/DataHandling/DataHandler.php b/typo3/sysext/core/Classes/DataHandling/DataHandler.php
index e356a73f6aa512bfc17e34a2d1f147622d153018..74f9152b433318896bcb696ca68ea35836b50655 100644
--- a/typo3/sysext/core/Classes/DataHandling/DataHandler.php
+++ b/typo3/sysext/core/Classes/DataHandling/DataHandler.php
@@ -3466,7 +3466,7 @@ class DataHandler implements LoggerAwareInterface
         if ($theNewRootID) {
             foreach ($copyTablesArray as $table) {
                 // All records under the page is copied.
-                if ($table && is_array($GLOBALS['TCA'][$table]) && $table !== 'pages') {
+                if ($table && is_array($GLOBALS['TCA'][$table] ?? false) && $table !== 'pages') {
                     $fields = ['uid'];
                     $languageField = null;
                     $transOrigPointerField = null;