A cell starting with '=<blank> ...' results in a stack underflow at toFormulaString: for (int j=0;j<numOperands;j++) { operands[numOperands-j-1] = (String) stack.pop(); //TODO: catch stack underflow and throw parse exception. Excel allows to have a Ptg with index=0 of type OperationPtg (an AttrPtg which is a blank). These OperationPtgs do not have arguments.
Created attachment 1946 [details] Patch for FormulaParser
again please resubmit the attachment as an actual patch and not the whole file...thanks.
Created attachment 1951 [details] Patch for FormulaParser
applied please cross check
Created attachment 1953 [details] Patch for FormulaParser #2
Last patch applied. testcases to be written