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 <span data-processor="relativetime" data-value="2023-05-11T20:31:16+00:00" > 05/11/23, 20:31 </span>

    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. Stefan Froemken commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-02T14:35:10+00:00" > 09/02/26, 14:35 </span>

    Applied in changeset commit:bbfa9175c4e5099779adceea527454cedd8677e2.