Bug 51950

Summary: XWPFDocument and getFootnotes()
Product: POI Reporter: Nikolai <nkislitsin>
Component: XWPFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: major    
Priority: P2    
Version: 3.8-dev   
Target Milestone: ---   
Hardware: PC   
OS: All   

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