[ https://issues.apache.org/jira/browse/PDFBOX-5803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr closed PDFBOX-5803. ----------------------------------- Resolution: Duplicate Closing as duplicate of PDFBOX-5792. I had a quick look at the file, it's similar to my test file that it has a table of contents. > Splitter throws NullPointerException when splitting certain PDFs > ---------------------------------------------------------------- > > Key: PDFBOX-5803 > URL: https://issues.apache.org/jira/browse/PDFBOX-5803 > Project: PDFBox > Issue Type: Bug > Components: Utilities > Affects Versions: 2.0.31 > Reporter: Asger Hautop Drewsen > Priority: Critical > > 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: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org