Bug 51950 - XWPFDocument and getFootnotes()
Summary: XWPFDocument and getFootnotes()
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XWPF (show other bugs)
Version: 3.8-dev
Hardware: PC All
: P2 major (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 13:50 UTC by Nikolai
Modified: 2011-10-05 21:27 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolai 2011-10-04 13:50:33 UTC
When creating a new XWPFDocument footnotes is null. Therefore getFootnotes() must return null, but no check for null in this method.
public List<XWPFFootnote> getFootnotes() {
	return footnotes.getFootnotesList();
}
Comment 1 Nick Burch 2011-10-05 21:27:16 UTC
Should be fixed in r1179449 - you should now get an empty list instead