Skip to content

Commit

Permalink
NPE in ExpressionOperator.printCollection - backport from 2.7 (#2140)
Browse files Browse the repository at this point in the history
* NPE in ExpressionOperator.printCollection

Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
  • Loading branch information
rfelcman committed May 16, 2024
1 parent b5d6f9a commit 525f6cf
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2024 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2022 IBM Corporation. All rights reserved.
*
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -2362,8 +2362,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 525f6cf

Please sign in to comment.