1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-10 17:25:19 +00:00

Add correct handling of failed reduces to both OpNode and Window.

This commit is contained in:
2017-07-26 18:41:21 -07:00
parent 367abb4157
commit 12e34230ec
2 changed files with 9 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ public class OpNode extends TreeNode {
public <T> T reduce(Reducer<T> reducer) {
T leftReduce = left.reduce(reducer);
T rightReduce = right.reduce(reducer);
if(leftReduce == null || rightReduce == null) return null;
return reducer.reduceNode(this, leftReduce, rightReduce);
}