-
Bug
-
Resolution: Fixed
-
Normal
-
3.8.2
-
None
-
None
steps to reproduce
- load a blank sheet
- 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.