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=44003>.
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=44003





------- Additional Comments From [EMAIL PROTECTED]  2007-11-30 15:08 -------
Created an attachment (id=21211)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=21211&action=view)
Small Microsoft Word 2000 File with a Table in it.

Using JAKARTA POI 3.0.1 or 3.0.0, I get java.lang.NullPointerException
        at org.apache.poi.hwpf.usermodel.ListEntry.<init>(ListEntry.java:38)
        at org.apache.poi.hwpf.usermodel.Range.getParagraph(Range.java:648)
when I loop through the sections and paragraphs of the attached doc.

Range r = doc.getRange();
StyleSheet styleSheet = doc.getStyleSheet();
for (int x = 0; x < r.numSections(); x++) {
Section s = r.getSection(x);
for (int y = 0; y < s.numParagraphs(); y++) {
Paragraph paragraph = s.getParagraph(y);
System.out.println(paragraph.getCharacterRun(0).text());

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to