[+BUGFIX] (Property) Fixed only adding objects to ObjectStorage
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Property / Mapper.php
index ed09b2c..15c5bbe 100644 (file)
@@ -226,7 +226,10 @@ class Tx_Extbase_Property_Mapper implements t3lib_Singleton {
                                                $objects = array();
                                                if (is_array($propertyValue)) {
                                                        foreach ($propertyValue as $value) {
-                                                               $objects[] = $this->transformToObject($value, $propertyMetaData['elementType'], $propertyName);
+                                                               $transformedObject = $this->transformToObject($value, $propertyMetaData['elementType'], $propertyName);
+                                                               if ($transformedObject !== NULL) {
+                                                                       $objects[] = $transformedObject;
+                                                               }
                                                        }
                                                }