poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41026] New: - [PATCH] ArrayIndexOutOfBoundsException in ValueRecordsAggregate.rowHasCells
Date Thu, 23 Nov 2006 13:45:27 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41026>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41026

           Summary: [PATCH] ArrayIndexOutOfBoundsException in
                    ValueRecordsAggregate.rowHasCells
           Product: POI
           Version: 3.0-dev
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P2
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: julien.ayme@gmail.com


Calling the method ValueRecordsAgregate.rowHasCells(int) with the parameter
equals to the length of the records throws an ArrayIndexOutOfBoundsException.
This happened when I called the method HSSFWorkbook.write(OutputStream):

The stacktrace:
java.lang.ArrayIndexOutOfBoundsException: 30
	at
org.apache.poi.hssf.record.aggregates.ValueRecordsAggregate.rowHasCells(ValueRecordsAggregate.java:195)
	at org.apache.poi.hssf.model.Sheet.getSize(Sheet.java:2112)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.getBytes(HSSFWorkbook.java:920)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.write(HSSFWorkbook.java:875)

I join two patches:
One for ValueRecordsAggregate, and one for TestValueRecordsAggregate.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Mime
View raw message