We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e4b113 commit 122d180Copy full SHA for 122d180
hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
@@ -5259,9 +5259,11 @@ public SqmSubQuery<?> visitSubquery(HqlParser.SubqueryContext ctx) {
5259
5260
final List<SqmSelection<?>> selections = subQuery.getQuerySpec().getSelectClause().getSelections();
5261
if ( selections.size() == 1 ) {
5262
- subQuery.applyInferableType( selections.get( 0 ).getExpressible().getSqmType() );
+ final SqmExpressible<?> expressible = selections.get( 0 ).getExpressible();
5263
+ if ( expressible != null ) {
5264
+ subQuery.applyInferableType( expressible.getSqmType() );
5265
+ }
5266
}
-
5267
return subQuery;
5268
5269
finally {
0 commit comments