You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2013/11/14 13:05:37 UTC
[Bug 52420] WordToHtmlConverter NullPointerException in
compactChildNodesR method
https://issues.apache.org/bugzilla/show_bug.cgi?id=52420
Yanis <ya...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yanis.biziuk@gmail.com
--- Comment #2 from Yanis <ya...@gmail.com> ---
Created attachment 31043
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31043&action=edit
With this file you can reproduce exception
With this file you can reproduce exception
11-14 13:25:53.108: WARN/System.err(8630): Caused by:
java.lang.NullPointerException
11-14 13:25:53.108: WARN/System.err(8630): at
org.apache.poi.hwpf.converter.AbstractWordUtils.compactChildNodesR(AbstractWordUtils.java:146)
11-14 13:25:53.108: WARN/System.err(8630): at
org.apache.poi.hwpf.converter.WordToHtmlUtils.compactSpans(WordToHtmlUtils.java:238)
11-14 13:25:53.108: WARN/System.err(8630): at
org.apache.poi.hwpf.converter.WordToHtmlConverter.processParagraph(WordToHtmlConverter.java:596)
11-14 13:25:53.108: WARN/System.err(8630): at
org.apache.poi.hwpf.converter.AbstractWordConverter.processParagraphes(AbstractWordConverter.java:1113)
11-14 13:25:53.108: WARN/System.err(8630): at
org.apache.poi.hwpf.converter.WordToHtmlConverter.processSingleSection(WordToHtmlConverter.java:617)
11-14 13:25:53.108: WARN/System.err(8630): at
org.apache.poi.hwpf.converter.AbstractWordConverter.processDocument(AbstractWordConverter.java:722)
this code will solve this error
<code>
if(child2.getParentNode()!=null){
child2.getParentNode().removeChild( child2 );
i--;
}
</code>
but converted html not contains all data from doc file (other bug?)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org