diff --git a/src/ContentBundle/Controller/Api/ContentController.php b/src/ContentBundle/Controller/Api/ContentController.php
index <HASH>..<HASH> 100644
--- a/src/ContentBundle/Controller/Api/ContentController.php
+++ b/src/ContentBundle/Controller/Api/ContentController.php
@@ -194,10 +194,12 @@ class ContentController extends Controller
         $content = $repository->find($paramFetcher->get('content'));
 
         $ids = [];
-        foreach ($paramFetcher->get('attributes') as $attribute) {
-            /** @var OptionValue $value */
-            $value = $content->getValueSet()->get($attribute);
-            $ids = array_merge($ids, $value->getIds());
+        if ($attributes = $paramFetcher->get('attributes') !== null) {
+            foreach ($attributes as $attribute) {
+                /** @var OptionValue $value */
+                $value = $content->getValueSet()->get($attribute);
+                $ids = array_merge($ids, $value->getIds());
+            }
         }
 
         $qb = $repository->createQueryBuilder('c')
Added not null check on attributes (#<I>)

* Added not null check on attributes



* Improvement for not is null check