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

NullPointerException is thrown when importing a file having a protected sheet with empty password

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 3.8.1
    • 3.8.1.FL
    • None
    • Security Level: Jimmy

      Steps to reproduce

      1. load attached file

      Actual result

      java.lang.NullPointerException
      at org.zkoss.poi.xssf.usermodel.XSSFSheet.getHashValue(XSSFSheet.java:3810)
      at org.zkoss.zss.range.impl.imexp.ExcelXlsxImporter.importPassword(ExcelXlsxImporter.java:574)
      at org.zkoss.zss.range.impl.imexp.AbstractExcelImporter.importSheet(AbstractExcelImporter.java:374)
      at org.zkoss.zss.range.impl.imexp.AbstractExcelImporter.imports(AbstractExcelImporter.java:145)

      Debug Information

      • At XSSFSheet.getHashValue(XSSFSheet.java:3810), sheetProtection.selectAttribute("", "hashValue") returns null.
      • Even I set a password for a sheet in Excel 2011, the exception still exists.

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

              Created:
              Updated:
              Resolved: