Skip to content

Conversation

@gkatiforis
Copy link

@gkatiforis gkatiforis commented Apr 18, 2020

Jira ticket: HHH-13932

Issue:
When the user attempts to set non existing query parameter using Query::setParameter a NullPointerException is thrown. This is due to CriteriaQueryTypeQueryAdapter.explicitParameterInfoMap not having a key for the parameter, as it was never used in the query.

Solution:
Check for non existing query parameter and throw an IllegalArgumentException with the corresponding message.

…eQueryAdapter and throw an exception with the corresponding message
Base automatically changed from master to main March 19, 2021 16:00
@gavinking
Copy link
Member

Bug already fixed. Adding test in #9341.

@gavinking gavinking closed this Nov 29, 2024
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.

3 participants