Bug 33263 - _numberText might be below zero.
Summary: _numberText might be below zero.
Alias: None
Product: POI
Classification: Unclassified
Component: HWPF (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Keywords: PatchAvailable
Depends on:
Reported: 2005-01-27 08:33 UTC by Der-Johng Sun
Modified: 2005-01-28 09:23 UTC (History)
0 users

I add some handle about _numberText in ListLevel.java. (1.98 KB, patch)
2005-01-27 08:36 UTC, Der-Johng Sun
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Der-Johng Sun 2005-01-27 08:33:11 UTC
When parsing some doc files, the _numberText might be below zero (I don't
why) and then cause error, such as

        at org.apache.poi.hwpf.model.ListLevel.<init>(ListLevel.java:115)
        at org.apache.poi.hwpf.model.ListFormatOverrideLevel.<init>
        at org.apache.poi.hwpf.model.ListTables.<init>(ListTables.java:85)
        at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:172)
Comment 1 Der-Johng Sun 2005-01-27 08:36:26 UTC
Created attachment 14111 [details]
I add some handle about _numberText in ListLevel.java.

I add some handle about _numberText in ListLevel.java.
Comment 2 Rainer Klute 2005-01-28 18:23:55 UTC
Patch applied. However, we don't have a test case.