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 1fedc6e commit 36bc892Copy full SHA for 36bc892
hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
@@ -5681,9 +5681,11 @@ public SqmSubQuery<?> visitSubquery(HqlParser.SubqueryContext ctx) {
5681
5682
final List<SqmSelection<?>> selections = subQuery.getQuerySpec().getSelectClause().getSelections();
5683
if ( selections.size() == 1 ) {
5684
- subQuery.applyInferableType( selections.get( 0 ).getExpressible().getSqmType() );
+ final SqmExpressible<?> expressible = selections.get( 0 ).getExpressible();
5685
+ if ( expressible != null ) {
5686
+ subQuery.applyInferableType( expressible.getSqmType() );
5687
+ }
5688
}
-
5689
return subQuery;
5690
5691
finally {
0 commit comments