File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/java/com/mongodb/hibernate/internal/translate Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,11 @@ public void visitStandardTableInsert(TableInsertStandard tableInsert) {
237237 var astElements = new ArrayList <AstElement >(tableInsert .getNumberOfValueBindings ());
238238 for (var columnValueBinding : tableInsert .getValueBindings ()) {
239239 var fieldName = columnValueBinding .getColumnReference ().getColumnExpression ();
240- var fieldValue = acceptAndYield (columnValueBinding .getValueExpression (), FIELD_VALUE );
240+ var valueExpression = columnValueBinding .getValueExpression ();
241+ if (valueExpression == null ) {
242+ throw new FeatureNotSupportedException ();
243+ }
244+ var fieldValue = acceptAndYield (valueExpression , FIELD_VALUE );
241245 astElements .add (new AstElement (fieldName , fieldValue ));
242246 }
243247 astVisitorValueHolder .yield (
You can’t perform that action at this time.
0 commit comments