Issue Bug Closed

#100797Submitting null to an ObjectStorage Property results in TypeError

Daniel Hoffmann 05/03/23, 12:55 updated 09/08/26, 10:03

Description

When submitting an empty value e.g. from a optional select field, which is stored in a extbase model property of type ObjectStorage<someclass>, the ObjectStorageTypeConverter tries to attach null to an ObjectStorage which causes the error “spl_object_hash(): Argument #1 ($object) must be of type object, null given”</someclass>

Reviews 2

History 614

  1. 2eduvu cye1ccfyn commented 05/11/23, 20:31

    important information by The error “spl_object_hash(): Argument #1 ($object) must be of type object, null given” is displayed when an empty value, such as one from an optional select field, is submitted and stored in an extbase model property https://beiteck.com/rental of type ObjectStorageSomeClass>.

  2. Benni Mack changed target version 06/05/23, 09:21

  3. Gerrit Code Review pushed patch set 1 for main to change 89660 status New Under Review 06/06/25, 10:23

  4. Gerrit Code Review pushed patch set 2 for main to change 89660 06/06/25, 10:45

  5. Gerrit Code Review pushed patch set 3 for main to change 89660 06/06/25, 11:31

  6. Gerrit Code Review pushed patch set 4 for main to change 89660 06/06/25, 11:37

  7. Gerrit Code Review pushed patch set 5 for main to change 89660 04/22/26, 06:34

  8. Gerrit Code Review pushed patch set 6 for main to change 89660 05/03/26, 08:40

  9. Benni Mack changed Sprint Focus On Location Sprint 08/06/26, 16:02

  10. Gerrit Code Review pushed patch set 7 for main to change 89660 09/02/26, 13:42

  11. Gerrit Code Review pushed patch set 1 for 14.3 to change 95567 09/02/26, 14:21

  12. Georg Ringer changed Related to #76202 09/02/26, 14:28

  13. Stefan Froemken commented and changed status Under Review Resolved done 0 % 100 % 09/02/26, 14:35

    Applied in changeset commit:bbfa9175c4e5099779adceea527454cedd8677e2.

  14. Benni Mack changed status Resolved Closed 09/08/26, 10:03