https://issues.apache.org/bugzilla/show_bug.cgi?id=46711

           Summary: java.lang.RuntimeException when trying to read a sheet
                    having protected cells
           Product: POI
           Version: 3.5-dev
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: regression
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=23254)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23254)
Repro file for the issue

Trying to read a xls with protected cells give the following exception:

java.lang.RuntimeException: two Page Settings Blocks found in the same sheet
        at org.apache.poi.hssf.model.Sheet.<init>(Sheet.java:228)
        at org.apache.poi.hssf.model.Sheet.createSheet(Sheet.java:160)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:287)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:201)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:317)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:298)
        at
org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:59)

Tested with the latest trunk


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to