Skip to content

Commit

Permalink
[Bugfix] Fix for npe NormalizePredicateRule
Browse files Browse the repository at this point in the history
Signed-off-by: Kishore Kumar M V <[email protected]>
  • Loading branch information
ikishore committed Oct 25, 2024
1 parent b2a4c8a commit 3920d8e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ private Optional<ScalarOperator> getOptimizedCompoundTree(CompoundPredicateOpera
parent.setCompoundTreeUniqueLeaves(compoundTreeUniqueLeaves);

// this tree can be optimized
if (compoundTreeUniqueLeaves.size() != parent.getCompoundTreeLeafNodeNumber()) {
if (compoundTreeUniqueLeaves != null &&
compoundTreeUniqueLeaves.size() != parent.getCompoundTreeLeafNodeNumber()) {
ScalarOperator newTree = Utils.createCompound(parent.getCompoundType(),
compoundTreeUniqueLeaves.stream().map(
node -> {
Expand Down

0 comments on commit 3920d8e

Please sign in to comment.