Even though I can't reproduce the issue, I believe this should prevent any NPE from
descriptor.getExpectedType()
https://github.com/Ouzned/hibernate-orm/commit/f1719a30e08c4712a38bd3b15604839314c83e44