Skip to content

Commit

Permalink
Fix select query block npe issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
lingo-xp authored and wenshao committed Dec 23, 2024
1 parent 9faeba9 commit f7266bc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1231,6 +1231,9 @@ public boolean replace(SQLExpr expr, SQLExpr target) {

protected <T extends SQLObject> boolean replaceList(List<T> exprList, T expr, T target) {
boolean isReplaced = false;
if (exprList == null) {
return isReplaced;
}
for (int i = 0; i < exprList.size(); i++) {
if (exprList.get(i) == expr) {
target.setParent(this);
Expand Down

0 comments on commit f7266bc

Please sign in to comment.