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 44003] - NullPointerException ListEntry.java:38
Date Fri, 30 Nov 2007 23:08:24 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=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 robert-francois.pastor@cegetel.net  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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message