diff --git a/core/modules/views/lib/Drupal/views/ViewStorageController.php b/core/modules/views/lib/Drupal/views/ViewStorageController.php index 8a5f87a..43e01f8 100644 --- a/core/modules/views/lib/Drupal/views/ViewStorageController.php +++ b/core/modules/views/lib/Drupal/views/ViewStorageController.php @@ -23,7 +23,7 @@ // Only return views for enabled modules. return array_filter($entities, function ($entity) { - if (module_exists($entity->get('module'))) { + if (is_object($entity) && module_exists($entity->get('module'))) { return TRUE; } return FALSE;