diff --git a/src/java/org/apache/poi/hssf/model/FormulaParser.java b/src/java/org/apache/poi/hssf/model/FormulaParser.java index 78bd113d4..b84aabbb7 100644 --- a/src/java/org/apache/poi/hssf/model/FormulaParser.java +++ b/src/java/org/apache/poi/hssf/model/FormulaParser.java @@ -603,20 +603,42 @@ end; int numPtgs = ptgs.length; OperationPtg o; int numOperands; + String result=null; String[] operands; + AttrPtg ifptg = null; for (int i=0;i0) { o = (OperationPtg) ptgs[i]; - numOperands = o.getNumberOfOperands(); - operands = new String[numOperands]; - for (int j=0;j0) { for (int i=0;i