Kyle Condon (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e84a8c...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZjMyNjg5MmNk...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-13932?atlOrigin=eyJpIjoiZjMyNj...
) HHH-13932 (
https://hibernate.atlassian.net/browse/HHH-13932?atlOrigin=eyJpIjoiZjMyNj...
) Trying to set an unused parameter causes a NullPointerException, instread of throwing a
more sensible error. (
https://hibernate.atlassian.net/browse/HHH-13932?atlOrigin=eyJpIjoiZjMyNj...
)
Issue Type: Bug Affects Versions: 5.2.11 Assignee: Unassigned Components: hibernate-core
Created: 06/Apr/2020 03:23 AM Environment: JDK8, MySQL 5.7 Priority: Minor Reporter: Kyle
Condon (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e84a8c...
)
Supposing a ParameterExpression is defined and then subsequently not used in a query, for
example due to an application setting, when the user attempts to set this parameter using
Query::setParameter a nullpointer exception is thrown.
This is due to CriteriaQueryTypeQueryAdapter::explicitParameterInfoMap not having a key
for the parameter, as it was never used in the query to begin with.
Either this should throw an explicit runtime exception, if this behavior is indeed meant
to be disallowed or silently do nothing, as the parameter is not in the query to begin
with.
Apologies if this has been fixed in a newer version.
(
https://hibernate.atlassian.net/browse/HHH-13932#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13932#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100124- sha1:c7667cc )