diff --git a/src/Api/ApigeeX/Controller/PaginationHelperTrait.php b/src/Api/ApigeeX/Controller/PaginationHelperTrait.php index e0796ae5..4afe9b09 100644 --- a/src/Api/ApigeeX/Controller/PaginationHelperTrait.php +++ b/src/Api/ApigeeX/Controller/PaginationHelperTrait.php @@ -118,7 +118,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);