diff --git a/src/Api/ApigeeX/Controller/PaginationHelperTrait.php b/src/Api/ApigeeX/Controller/PaginationHelperTrait.php index 3747e17a..5aaa6eff 100644 --- a/src/Api/ApigeeX/Controller/PaginationHelperTrait.php +++ b/src/Api/ApigeeX/Controller/PaginationHelperTrait.php @@ -117,7 +117,8 @@ protected function listEntities(PagerInterface $pager = null, array $query_param // Ignore entity type key from response, ex.: developer, apiproduct, // etc. $responseArray = reset($responseArray); - if (empty($responseArray)) { + // Appgroup can be empty. + if (empty($responseArray) || !is_array($responseArray)) { return []; } $entities = $this->responseArrayToArrayOfEntities($responseArray, $key_provider);