Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-1201

Creating a sheet with a book range causes NullPointerException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.8.2
    • Fix Version/s: 3.8.3
    • Component/s: None
    • Labels:
      None

      Description

      steps to reproduce

      1. load a blank sheet
      2. calling Ranges.range(ss.getBook()).createSheet("temp"); or SheetOperationUtil.createSheet(Ranges.range(ss.getBook()),"temp");

      result

      SEVERE:
      java.lang.NullPointerException
      at org.zkoss.zss.api.impl.RangeImpl.getBook(RangeImpl.java:317)
      at org.zkoss.zss.api.SheetOperationUtil$2.run(SheetOperationUtil.java:348)
      at org.zkoss.zss.api.impl.RangeImpl.sync(RangeImpl.java:263)
      at org.zkoss.zss.api.SheetOperationUtil.createSheet(SheetOperationUtil.java:346)

      expected result

      no exception
      Passing a book range is also a reasonable range.

        Activity

        Hide
        henrichen henrichen added a comment -

        Fixed.

        Show
        henrichen henrichen added a comment - Fixed.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: