Bug 65255 - java.lang.NullPointerException: Attempt to invoke interface method 'org.w3c.dom.Node org.w3c.dom.Node.removeChild
Summary: java.lang.NullPointerException: Attempt to invoke interface method 'org.w3c.d...
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: HWPF (show other bugs)
Version: 5.0.0-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-20 12:21 UTC by softboy99@163.com
Modified: 2021-04-20 12:25 UTC (History)
0 users



Attachments
sample doc file for converting to html (26.50 KB, application/msword)
2021-04-20 12:21 UTC, softboy99@163.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description softboy99@163.com 2021-04-20 12:21:11 UTC
Created attachment 37818 [details]
sample doc file for converting to html

java.lang.NullPointerException: Attempt to invoke interface method 'org.w3c.dom.Node org.w3c.dom.Node.removeChild(org.w3c.dom.Node)' on a null object reference

at org.apache.poi.hwpf.converter.AbstractWordUtils.compactChildNodesR(AbstractWordUtils.java:145)
W/System.err:     at org.apache.poi.hwpf.converter.WordToHtmlUtils.compactSpans(WordToHtmlUtils.java:238)
        at org.apache.poi.hwpf.converter.WordToHtmlConverter.processParagraph(WordToHtmlConverter.java:590)
        at org.apache.poi.hwpf.converter.AbstractWordConverter.processParagraphes(AbstractWordConverter.java:1109)
        at org.apache.poi.hwpf.converter.WordToHtmlConverter.processTable(WordToHtmlConverter.java:690)
        at org.apache.poi.hwpf.converter.AbstractWordConverter.processParagraphes(AbstractWordConverter.java:1071)
W/System.err:     at org.apache.poi.hwpf.converter.WordToHtmlConverter.processSingleSection(WordToHtmlConverter.java:611)