Merge pull request #181 from percyliang/fix-recursion

Fixed the recursion bug
This commit is contained in:
Panupong (Ice) Pasupat 2018-04-24 03:37:55 -07:00 committed by GitHub
commit 7b9f4625c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ public abstract class Formulas {
// recurse
if (f instanceof AggregateFormula) {
AggregateFormula aggFormula = (AggregateFormula) f;
extractSubpartsRecursive(aggFormula, res);
extractSubpartsRecursive(aggFormula.child, res);
} else if (f instanceof CallFormula) {
CallFormula callFormula = (CallFormula) f;
extractSubpartsRecursive(callFormula.func, res);