ASF Bugzilla – Attachment 15801 Details for
Bug 28772
Excel file causes InvocationTargetException
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for fixing the runtimeerror caused by the xls attached to this bugreport
28772_BOFRecord.patch (text/plain), 1.05 KB, created by
Amol Deshmukh
on 2005-07-27 23:00:29 UTC
(
hide
)
Description:
Patch for fixing the runtimeerror caused by the xls attached to this bugreport
Filename:
MIME Type:
Creator:
Amol Deshmukh
Created:
2005-07-27 23:00:29 UTC
Size:
1.05 KB
patch
obsolete
>Index: src/java/org/apache/poi/hssf/record/BOFRecord.java >=================================================================== >RCS file: /home/cvspublic/jakarta-poi/src/java/org/apache/poi/hssf/record/BOFRecord.java,v >retrieving revision 1.9 >diff -u -r1.9 BOFRecord.java >--- src/java/org/apache/poi/hssf/record/BOFRecord.java 2 Jan 2005 01:00:52 -0000 1.9 >+++ src/java/org/apache/poi/hssf/record/BOFRecord.java 27 Jul 2005 20:49:33 -0000 >@@ -130,8 +130,8 @@ > field_2_type = LittleEndian.getShort(data, 2 + offset); > field_3_build = LittleEndian.getShort(data, 4 + offset); > field_4_year = LittleEndian.getShort(data, 6 + offset); >- field_5_history = LittleEndian.getInt(data, 8 + offset); >- field_6_rversion = LittleEndian.getInt(data, 12 + offset); >+ field_5_history = (data.length <= 8+offset) ? HISTORY_MASK : LittleEndian.getInt(data, 8 + offset); >+ field_6_rversion = (data.length <= 12+offset) ? 0x6 : LittleEndian.getInt(data, 12 + offset); // 0x6 from Sheet.createBOF > } > > /**
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28772
:
11426
| 15801