[
https://issues.apache.org/jira/browse/PDFBOX-3247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15159566#comment-15159566
]
Tilman Hausherr commented on PDFBOX-3247:
-----------------------------------------
Although the line you mention seems to be risky, I can't reproduce the NPE with
your file.
> Merging fails on certain pdfs with form-fields
> ----------------------------------------------
>
> Key: PDFBOX-3247
> URL: https://issues.apache.org/jira/browse/PDFBOX-3247
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.8.11
> Reporter: Marco Wettstein
> Priority: Critical
> Attachments: 20150623_Layout_Rückseite.pdf
>
>
> I have a simple pdf with a form field. When I merge it with another pdf it
> crashes with a NullPointerException:
> PDFMergerUtility.mergeDocuments()
> then in PDAcroForm on line 303:
> {code}
> COSString fieldName = (COSString)element.getDictionaryObject(
> COSName.getPDFName( "T" ) );
> if( fieldName.getString().equals( name ) ||
> fieldName.getString().equals( nameSubSection[0] ) )
> {code}
> fieldName will be null.
> The file that causes the problem can be found here:
> https://drive.google.com/file/d/0B999M9JdRfxfVUdQeENSZkFCdlk/view?usp=sharing
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]