Skip to content

Commit

Permalink
NPE in ExpressionOperator.printCollection - backport from 2.7 (#2139)
Browse files Browse the repository at this point in the history
Fixes #2136 
Backport from #2137
---------

Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
  • Loading branch information
rfelcman committed May 14, 2024
1 parent cde1999 commit 788c8b6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2383,8 +2383,7 @@ public void printCollection(List<Expression> items, ExpressionSQLPrinter printer

int[] indices = getArgumentIndices(items.size());
String[] dbStrings = getDatabaseStrings(items.size());
for (int i = 0; i < indices.length; i++) {
final int index = indices[i];
for (final int index : indices) {
Expression item = items.get(index);

if ((this.selector == Ref) || ((this.selector == Deref) && (item.isObjectExpression()))) {
Expand Down

0 comments on commit 788c8b6

Please sign in to comment.