diff --git a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php
index 8d0b4c15af3663b485c084f06f76d70e8a2e6ef0..07706e8bb9c39b76c8a5f7b9f998183a93cc9896 100644
--- a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php
+++ b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php
@@ -2299,9 +2299,9 @@ class DatabaseRecordList
             if (empty($row)) {
                 return ($table === 'pages') || !$pageHasEditLock;
             }
-            if (($table === 'pages' && $row['editlock']) || ($table !== 'pages' && $pageHasEditLock)) {
+            if (($table === 'pages' && ($row['editlock'] ?? false)) || ($table !== 'pages' && $pageHasEditLock)) {
                 $editPermission = false;
-            } elseif (isset($GLOBALS['TCA'][$table]['ctrl']['editlock']) && $row[$GLOBALS['TCA'][$table]['ctrl']['editlock']]) {
+            } elseif (isset($GLOBALS['TCA'][$table]['ctrl']['editlock']) && ($row[$GLOBALS['TCA'][$table]['ctrl']['editlock']] ?? false)) {
                 $editPermission = false;
             }
         }