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

setSelectedSheet() causes a NullPointerException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.10.FL
    • Fix Version/s: 5.10.0
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      Steps to Reproduce

      1. run the attached zul and composer

      <spreadsheet id="ss" width="100%" vflex="1" apply="ticket.HideSelectedComposer"
      showContextMenu="true" showSheetbar="true" showToolbar="true" showFormulabar="true"
      showSheetTabContextMenu="true"
      />

      Current Result

      java.lang.NullPointerException
      at io.keikai.ui.Spreadsheet.setSelectedSheet0(Spreadsheet.java:1034)
      at io.keikai.ui.Spreadsheet.setSelectedSheet(Spreadsheet.java:983)
      at ticket.HideSelectedComposer.doAfterCompose(HideSelectedComposer.java:27)

      _initializedSheets is null

      Expected Result

      no error.
      Select the first visible sheet

      Debug Information

      • the selected sheet in a file is hidden by API, which is the real use case from a customer
      • we could initialize _initializedSheets early

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              DevChu DevChu
              Reporter:
              hawk hawk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: