New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NullPointerException when converting DocX to html #155
Comments
If you send the whole Stacktrace this could be found |
org.apache.poi.xwpf.converter.core.XWPFConverterException: java.lang.NullPointerException |
I need to know where the null pointer happens, this stacktrace is still incomplete |
that is the trace i get out of it. |
Can you debug it and check where the null pointer happens? |
my appalogies seems i forgot to add this: Caused by: java.lang.NullPointerException Also the document enclosed causes this error, as other documents doesn't.
input and output streams is defined. and as stated before, other docx documents works without issues, but some others causes this. |
Looks like something weird, there doesn't seem to be a table in the document. Still it tries to parse one. Btw which version of XDocReport are you using? Can you remake your document part for part and fix this problem. By doing that you can find out what part of the document causes the error. I do not have expertise with the DOCX to XWPF converter, maybe just wait for @angelozerr to come by. |
Is this fixed, I have the same problem |
I have the same problem, here is my code:
error information:
|
I have the same problem, here is the stacktrace:
I debug it and find the null pointer happens in |
Having the same problem. grid is null for some reason and no clue how it should be initialized |
Any updates for this bug? |
I have the same problem. I notice it only happens when the document is generated um apache poi. If eu edit in any way the docx file in word and try to convert after, it works. Somehow the API is not filling all table fileds and causa these null pointers |
I have the same problem, the document has a table created with apache poi 4.0.1 and CTTblGrid is null
|
this problem should be solved. Check this link for detail: #638 |
Stack
org.apache.poi.xwpf.converter.core.XWPFConverterException: java.lang.NullPointerException
at org.apache.poi.xwpf.converter.xhtml.XHTMLConverter.convert(XHTMLConverter.java:77)
at org.apache.poi.xwpf.converter.xhtml.XHTMLConverter.doConvert(XHTMLConverter.java:63)
at org.apache.poi.xwpf.converter.xhtml.XHTMLConverter.doConvert(XHTMLConverter.java:38)
at org.apache.poi.xwpf.converter.core.AbstractXWPFConverter.convert(AbstractXWPFConverter.java:45)
at [Redacted].DocImport.StringDOCXImport(DocImport.java:270)
Olika program att använda sig utav med GTD för att få det enklare i vardagen.docx
including docx file.
Any ideas on whats causing this?
The text was updated successfully, but these errors were encountered: