Skip to content

Commit 788c8b6

Browse files
authored
NPE in ExpressionOperator.printCollection - backport from 2.7 (#2139)
Fixes #2136 Backport from #2137 --------- Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
1 parent cde1999 commit 788c8b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

foundation/org.eclipse.persistence.core/src/main/java/org/eclipse/persistence/expressions/ExpressionOperator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2383,8 +2383,7 @@ public void printCollection(List<Expression> items, ExpressionSQLPrinter printer
23832383

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

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

0 commit comments

Comments
 (0)