Skip to content

HHH-19596 NPE when array/collection of Struct contains null value #10487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

cigaly
Copy link
Contributor

@cigaly cigaly commented Jul 8, 2025

Jira issue HHH-19596

Added null checks where needed to immediately return null instead of causing NPE.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


Copy link
Member

@mbellade mbellade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cigaly, you can use @RequireDialectFeatures instead of skipping for specific dialects to ensure we test on dbs that support arrays of struct-types.

@cigaly cigaly force-pushed the HHH-19596-NPE_when_array_or_collection_of_Struct_contains_null_value branch from 8abe17b to cd5a1fb Compare July 8, 2025 10:10
@beikov beikov merged commit 21b138c into hibernate:main Jul 8, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants