Hi!

I want to merge several Documents to a single PDF-Document. The Docs I want
to merge were previously splitted from a bigger document.
During my loop I received the following Exception

java.lang.NullPointerException: Cannot invoke
"org.apache.pdfbox.pdmodel.common.COSObjectable.getCOSObject()" because the
return value of "java.util.Map$Entry.getValue()" is null
at
org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:878)

During debugging I can see that a couple of values in the
srcNumberTreeAsMap were null.

I am using the latest release 3.0.4. and I could not found any JIRA-Issue,
maybe it is a new one.

Unfortunately I can not provide the Docs I want to merge, because the
content is confidential and with other docs it works perfect.

Do you have an idea how I can analyse the issue?

Thx, in advance
Olli

Reply via email to