diff --git a/core/lib/Drupal/Core/SystemListing.php b/core/lib/Drupal/Core/SystemListing.php
index 20d95cb..34988ce 100644
--- a/core/lib/Drupal/Core/SystemListing.php
+++ b/core/lib/Drupal/Core/SystemListing.php
@@ -17,6 +17,13 @@
 class SystemListing {
 
   /**
+   * List of profiles.
+   *
+   * @var array
+   */
+  protected $profiles;
+
+  /**
    * Construct this listing object.
    *
    * @param array $profiles
@@ -89,8 +96,13 @@ function scan($mask, $directory, $key = 'name') {
 
     // Search for the directory in core.
     $searchdir = array('core/' . $directory);
-    foreach ($this->profiles($directory) as $profile) {
-      $searchdir[] = $profile;
+    try {
+      foreach ($this->getProfiles($directory) as $profile) {
+        $searchdir[] = $profile;
+      }
+    }
+    catch (\Exception $e) {
+      var_dump($e);
     }
 
     // Always search for contributed and custom extensions in top-level
@@ -124,7 +136,7 @@ function scan($mask, $directory, $key = 'name') {
    * @return array
    *   A list of profiles.
    */
-  protected function profiles($directory) {
+  protected function getProfiles($directory) {
     return $this->profiles;
   }
 
diff --git a/core/lib/Drupal/Core/SystemListingInfo.php b/core/lib/Drupal/Core/SystemListingInfo.php
index d302699..fd8f2c7 100644
--- a/core/lib/Drupal/Core/SystemListingInfo.php
+++ b/core/lib/Drupal/Core/SystemListingInfo.php
@@ -15,9 +15,9 @@
 class SystemListingInfo extends SystemListing {
 
   /**
-   * Overrides Drupal\Core\SystemListing::profiles().
+   * Overrides Drupal\Core\SystemListing::getProfiles().
    */
-  protected function profiles($directory) {
+  protected function getProfiles($directory) {
     $searchdir = array();
     // The 'core/profiles' directory contains pristine collections of modules
     // and themes as provided by a distribution. It is pristine in the same
