Improve error reporting on null values in querybuilder DSL

Description

From forum thread: https://forum.hibernate.org/viewtopic.php?f=9&t=1008832
Something wrong, but there's a typo in first error message and the NPE definitely doesn't help understand the issue.

Environment

None

Status

Assignee

Unassigned

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Trivial
Configure