Skip to content

Commit

Permalink
NPE in ExpressionOperator.printCollection - backport from 2.7 (eclips…
Browse files Browse the repository at this point in the history
…e-ee4j#2139)

Fixes eclipse-ee4j#2136 
Backport from eclipse-ee4j#2137
---------

Signed-off-by: Radek Felcman <[email protected]>
  • Loading branch information
rfelcman authored 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.