JPA Constructor Expressions fails with nullLiteral passed to constructor

Description

CriteriaQuery fails with

when use nullLiteral in query.
So if we have constructor like:

The query like:

Will fail with no appropriate constructor in class exception.
Test case attached

Environment

None

Status

Assignee

Andrea Boriero

Reporter

Nikita Metzger

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure