only in patch2: unchanged: --- a/core/lib/Drupal/Core/Config/ExtensionInstallStorage.php +++ b/core/lib/Drupal/Core/Config/ExtensionInstallStorage.php @@ -98,11 +98,14 @@ protected function getAllFolders() { // The install profile can override module default configuration. We do // this by replacing the config file path from the module/theme with the // install profile version if there are any duplicates. - $profile_folders = $this->getComponentNames('profile', array(drupal_get_profile())); - $this->folders = $profile_folders + $this->folders; + $profile = drupal_get_profile(); + if (isset($profile)) { + $profile_folders = $this->getComponentNames('profile', array($profile)); + $this->folders = $profile_folders + $this->folders; + } } } - return $this->folders; + return $this->folders;ยง } }