You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2007/12/01 00:08:24 UTC

DO NOT REPLY [Bug 44003] - NullPointerException ListEntry.java:38

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