| The indicated line fails with an NPE. Code inside Hibernate just uses the name from the Parameter instance, without checking for null. This only appears with Collection-valued parameters and only with parameters identified by index.
The full stack trace is:
A small repository with the class shown above and complete infrastructure to reproduce the issue can be found at https://github.com/schauder/hibernate-setparameter-bug |