From c5371c3fc4cb8eafbfa26ffc67dc78f56a2f11e4 Mon Sep 17 00:00:00 2001
From: Aaron Bauman <aaron@messageagency.com>
Date: Mon, 16 Oct 2017 13:32:42 -0400
Subject: [PATCH] Don't call ::size() on null

---
 modules/salesforce_pull/src/QueueHandler.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/salesforce_pull/src/QueueHandler.php b/modules/salesforce_pull/src/QueueHandler.php
index 6d5fec89..f655b6d0 100644
--- a/modules/salesforce_pull/src/QueueHandler.php
+++ b/modules/salesforce_pull/src/QueueHandler.php
@@ -149,8 +149,8 @@ class QueueHandler {
       // @TODO Replace this with a better implementation when available,
       // see https://www.drupal.org/node/2820345, https://www.drupal.org/node/2785211
       $mapping->setLastPullTime($this->time->getRequestTime());
+      return $results->size();
     }
-    return $results->size();
   }
 
   /**
-- 
GitLab