Summary: | [PATCH] RecordInputStream.readCompressedUnicode throws exception even if length is zero | ||
---|---|---|---|
Product: | POI | Reporter: | Neil Aggarwal <neil> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 3.0-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: |
Patch to add check for length equal to zero.
Excel sheet that causes the error |
Created attachment 21693 [details]
Excel sheet that causes the error
Trying to read the attached spreadsheet will cause RecordInputStream to throw an exception.
Thanks for this patch, applied to svn along with a unit test |
Created attachment 21692 [details] Patch to add check for length equal to zero. The method readCompressedUnicode will throw an illegal length exception even if the passed in length is zero. I added a check to return an empty string when the length is zero.