bellakhalAmir / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

NPE for docx->pdf converter with unknown hyperlink id. #344

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.trying the example:  DocxTableWithoutFieldsMetadataWithVelocity2PDF
2.
3.

What is the expected output? What do you see instead?
I expected a PDF file but instead i get this:
05/01/2014 3:41:17 PM 
fr.opensagres.xdocreport.converter.docx.poi.itext.XWPF2PDFViaITextConverter 
convert
SEVERE: java.lang.NullPointerException
fr.opensagres.xdocreport.converter.XDocConverterException: 
org.apache.poi.xwpf.converter.core.XWPFConverterException: 
java.lang.NullPointerException
    at fr.opensagres.xdocreport.converter.docx.poi.itext.XWPF2PDFViaITextConverter.convert(XWPF2PDFViaITextConverter.java:72)
    at fr.opensagres.xdocreport.document.AbstractXDocReport.convert(AbstractXDocReport.java:713)
    at fr.opensagres.xdocreport.samples.docxandvelocity.DocxTableWithoutFieldsMetadataWithVelocity2PDF.main(DocxTableWithoutFieldsMetadataWithVelocity2PDF.java:231)
Caused by: org.apache.poi.xwpf.converter.core.XWPFConverterException: 
java.lang.NullPointerException
    at org.apache.poi.xwpf.converter.pdf.PdfConverter.doConvert(PdfConverter.java:59)
    at org.apache.poi.xwpf.converter.pdf.PdfConverter.doConvert(PdfConverter.java:37)
    at org.apache.poi.xwpf.converter.core.AbstractXWPFConverter.convert(AbstractXWPFConverter.java:45)
    at fr.opensagres.xdocreport.converter.docx.poi.itext.XWPF2PDFViaITextConverter.convert(XWPF2PDFViaITextConverter.java:67)
    ... 2 more
Caused by: java.lang.NullPointerException
    at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitRun(XWPFDocumentVisitor.java:661)
    at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitRuns(XWPFDocumentVisitor.java:614)
    at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitParagraphBody(XWPFDocumentVisitor.java:435)
    at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitParagraph(XWPFDocumentVisitor.java:326)
    at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitBodyElements(XWPFDocumentVisitor.java:241)
    at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitTableCellBody(XWPFDocumentVisitor.java:1062)
    at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitCell(XWPFDocumentVisitor.java:997)
    at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitTableRow(XWPFDocumentVisitor.java:945)
    at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitTableBody(XWPFDocumentVisitor.java:847)
    at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitTable(XWPFDocumentVisitor.java:829)
    at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.visitBodyElements(XWPFDocumentVisitor.java:245)
    at org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.start(XWPFDocumentVisitor.java:193)
    at org.apache.poi.xwpf.converter.pdf.PdfConverter.doConvert(PdfConverter.java:55)
    ... 5 more

What version of the product are you using? On what operating system?
docxandvelocity.converters-1.0.3

Please provide any additional information below.

Original issue reported on code.google.com by a...@cloudguard365.com on 5 Jan 2014 at 4:58

GoogleCodeExporter commented 8 years ago
Problem with NPE should be fixed for 1.0.4. See my commit at 
https://code.google.com/p/xdocreport/source/detail?r=4de210fda4c5b6eb3ed736df213
21248dab5edaa

Original comment by angelo.z...@gmail.com on 5 Jan 2014 at 3:54

GoogleCodeExporter commented 8 years ago

Original comment by angelo.z...@gmail.com on 18 Feb 2014 at 1:31