https://bz.apache.org/bugzilla/show_bug.cgi?id=62859
Bug ID: 62859 Summary: NPE when creating SDTContent Product: POI Version: unspecified Hardware: PC Status: NEW Severity: normal Priority: P2 Component: XWPF Assignee: dev@poi.apache.org Reporter: talli...@mitre.org Target Milestone: --- Иван Сорокин reported the following NPE on discuss.elastic.co. I can't quick replicate it, but I can see how to fix it. https://discuss.elastic.co/t/error-while-using-ingest-attachment-plugin-on-some-docs/153836/2 Caused by: java.lang.NullPointerException > at > org.apache.poi.xwpf.usermodel.XWPFSDTContent.<init>(XWPFSDTContent.java:50) > ~[?:?] > at org.apache.poi.xwpf.usermodel.XWPFSDT.<init>(XWPFSDT.java:34) ~[?:?] > at > org.apache.poi.xwpf.usermodel.XWPFParagraph.buildRunsInOrderFromXml(XWPFParagraph.java:136) > ~[?:?] > at > org.apache.poi.xwpf.usermodel.XWPFParagraph.<init>(XWPFParagraph.java:63) > ~[?:?] > at > org.apache.poi.xwpf.usermodel.XWPFSDTContent.<init>(XWPFSDTContent.java:63) > ~[?:?] > at org.apache.poi.xwpf.usermodel.XWPFSDT.<init>(XWPFSDT.java:39) ~[?:?] > at > org.apache.poi.xwpf.usermodel.XWPFDocument.onDocumentRead(XWPFDocument.java:178) > ~[?:?] > at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:169) ~[?:?] > at > org.apache.poi.xwpf.usermodel.XWPFDocument.<init>(XWPFDocument.java:112) > ~[?:?] > at > org.apache.poi.xwpf.extractor.XWPFWordExtractor.<init>(XWPFWordExtractor.java:60) > ~[?:?] Full stacktrace is here: https://pastebin.com/CHfFMc52 -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org