You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Mohan H (Jira)" <ji...@apache.org> on 2024/03/30 08:11:00 UTC
[jira] [Updated] (PDFBOX-5792) Regression NPE in Splitter
[ https://issues.apache.org/jira/browse/PDFBOX-5792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mohan H updated PDFBOX-5792:
----------------------------
Summary: Regression NPE in Splitter (was: Regression in Splitter)
> Regression NPE in Splitter
> --------------------------
>
> Key: PDFBOX-5792
> URL: https://issues.apache.org/jira/browse/PDFBOX-5792
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 3.0.2 PDFBox
> Reporter: Mohan H
> Priority: Major
> Attachments: PdfBoxSplitterTest.java, demo.pdf
>
>
> {color:#172b4d}The attached pdf used to work with Splitter in release 3.0.0 {color}{color:#172b4d}however breaks in 3.0.2.{color}
>
> {color:#ff0000}Cannot invoke "org.apache.pdfbox.pdmodel.PDPage.getCOSObject()" because the return value of "org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageDestination.getPage()" is null{color}
> {color:#0066cc}java.lang.NullPointerException{color}{color:#ff0000}: Cannot invoke "org.apache.pdfbox.pdmodel.PDPage.getCOSObject()" because the return value of "org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageDestination.getPage()" is null{color}
> {color:#ff0000} at org.apache.pdfbox.multipdf.Splitter.fixDestinations({color}{color:#0066cc}Splitter.java:153{color}{color:#ff0000}){color}
> {color:#ff0000} at org.apache.pdfbox.multipdf.Splitter.split({color}{color:#0066cc}Splitter.java:136{color}{color:#ff0000}){color}
>
> Have attached the pdf and a test class.
> It fails if we split on page count =1 or count = 10.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org