An NPE happens in SqmParameterInterpretation.resolveSqlSelection because we try to resolve the SqmExpressible type somehow, but if binding null, the parameter has no type in a query like this: insert into EntityA (attribute) select :param from OtherEntity The logic is faulty in SqmParameterInterpretation as it shouldn’t try to resolve the SqmExpressible. Type resolution already happened, we just need to make use of it. |