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

Creating a sheet with a book range causes NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 3.8.3
    • 3.8.2
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: