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(); }
Should be fixed in r1179449 - you should now get an empty list instead