Skip to content

Commit

Permalink
NPE in ExpressionOperator.printCollection - backport from 2.7 (#2141)
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 a12b803 commit 7d06f20
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 @@ -2387,8 +2387,7 @@ public void printCollection(List<Expression> items, ExpressionSQLPrinter printer
}

String[] dbStrings = getDatabaseStrings(items.size());
for (int i = 0; i < this.argumentIndices.length; i++) {
final int index = this.argumentIndices[i];
for (final int index : this.argumentIndices) {
Expression item = items.get(index);
if ((this.selector == Ref) || ((this.selector == Deref) && (item.isObjectExpression()))) {
DatabaseTable alias = item.aliasForTable(((ObjectExpression)item).getDescriptor().getTables().firstElement());
Expand Down

0 comments on commit 7d06f20

Please sign in to comment.