Asger Hautop Drewsen created PDFBOX-5803:
--------------------------------------------

             Summary: Splitter throws NullPointerException when splitting 
certain PDFs
                 Key: PDFBOX-5803
                 URL: https://issues.apache.org/jira/browse/PDFBOX-5803
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 2.0.31
            Reporter: Asger Hautop Drewsen


Starting with version 2.0.31 (version 2.0.30 is not affected) some PDFs result 
in the following exception to be thrown:
{code:java}
java.lang.NullPointerException: Cannot invoke 
"org.apache.pdfbox.pdmodel.PDPage.getCOSObject()" because the return value of 
"org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageDestination.getPage()"
 is null
        at 
org.apache.pdfbox.multipdf.Splitter.fixDestinations(Splitter.java:153)
        at org.apache.pdfbox.multipdf.Splitter.split(Splitter.java:136)
        at ...{code}
For instance it happens with the following PDF file: 
[https://ptgmedia.pearsoncmg.com/images/9780132350884/samplepages/9780132350884.pdf]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to