[
https://issues.apache.org/jira/browse/PDFBOX-3761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15973543#comment-15973543
]
Tilman Hausherr commented on PDFBOX-3761:
-----------------------------------------
Could you please attach the PDF file? It looks like
{{destOutline.getFirstChild()}} is null, but I'd like to see what's going on.
> Exception in thread "main" java.lang.NullPointerException
> ---------------------------------------------------------
>
> Key: PDFBOX-3761
> URL: https://issues.apache.org/jira/browse/PDFBOX-3761
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.0.5
> Environment: Java 1.8, Windows.
> Reporter: Durgesh Agrawal
> Attachments: PDFMergerExample.java, TestMergePdf.java
>
>
> Getting Nullpointer exception when running PDFMergerExample
> Exception in thread "main" java.lang.NullPointerException
> at
> org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:432)
> at
> org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:261)
> at
> scrach_pad.batch_email.PDFMergerExample.merge(PDFMergerExample.java:87)
> at scrach_pad.batch_email.TestMergePdf.main(TestMergePdf.java:50)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]