Additional uncaught exception thrown while handling exception.

Original

TypeError: Argument 1 passed to Drupal\Core\Extension\ThemeHandler::addTheme() must be an instance of Drupal\Core\Extension\Extension, null given, called in /usr/src/app/drupal-9/core/includes/theme.maintenance.inc on line 71 in Drupal\Core\Extension\ThemeHandler->addTheme() (line 82 of /usr/src/app/drupal-9/core/lib/Drupal/Core/Extension/ThemeHandler.php).

Drupal\Core\Extension\ThemeHandler->addTheme(NULL) (Line: 71)
_drupal_maintenance_theme() (Line: 471)
drupal_maintenance_theme() (Line: 510)
install_begin_request(Object, Array) (Line: 115)
install_drupal(Object) (Line: 48)

Additional

TypeError: Argument 1 passed to Drupal\Core\Extension\ThemeHandler::addTheme() must be an instance of Drupal\Core\Extension\Extension, null given, called in /usr/src/app/drupal-9/core/includes/theme.maintenance.inc on line 71 in Drupal\Core\Extension\ThemeHandler->addTheme() (line 82 of /usr/src/app/drupal-9/core/lib/Drupal/Core/Extension/ThemeHandler.php).

Drupal\Core\Extension\ThemeHandler->addTheme(NULL) (Line: 71)
_drupal_maintenance_theme() (Line: 471)
drupal_maintenance_theme() (Line: 1019)
install_display_output(Array, Array) (Line: 271)
_drupal_log_error(Array, 1) (Line: 330)
_drupal_exception_handler(Object)