Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-455

an invalid cell reference cause the rendering and exporting failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 5.8.0
    • 5.7.0
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. load the attached file

      Current Result

      java.lang.IllegalStateException: Too few arguments supplied to operation. Expected (2) operands but got (1)
      	at org.zkoss.poi.ss.formula.FormulaRenderer.getOperands(FormulaRenderer.java:148)
      	at org.zkoss.poi.ss.formula.FormulaRenderer.toFormulaString(FormulaRenderer.java:124)
      	at org.zkoss.poi.ss.formula.FormulaRenderer.toFormulaEditText(FormulaRenderer.java:273)
      	at io.keikaiex.model.sys.FormatEngineEx.getFormulaEditText(FormatEngineEx.java:61)
      	at io.keikai.model.impl.sys.FormatEngineImpl.getEditText(FormatEngineImpl.java:169)
      	at io.keikai.ui.impl.CellFormatHelper.getCellEditText(CellFormatHelper.java:544)
      	at io.keikai.ui.SpreadsheetCtrlImpl.getCellAttr(SpreadsheetCtrlImpl.java:632)
      	at io.keikai.ui.SpreadsheetCtrlImpl.getRangeAttrs(SpreadsheetCtrlImpl.java:382)
      	at io.keikai.ui.Spreadsheet.createActiveRange(Spreadsheet.java:1970)
      	at io.keikai.ui.Spreadsheet.renderProperties(Spreadsheet.java:1923)
      	at org.zkoss.zk.ui.AbstractComponent.redraw(AbstractComponent.java:2175)
      

      Expected Result

      A1 is 1
      A2 is #REF

      Debug Information

      • the error also fails the exporting
      • the formula contains an invalid reference: =2*IF(1=1,1,AnotherSheet!#REF!)

      Workaround

      fix the invalid cell reference

            jumperchen jumperchen
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: