[ 
https://issues.apache.org/jira/browse/PDFBOX-6296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18135538#comment-18135538
 ] 

ASF subversion and git services commented on PDFBOX-6296:
---------------------------------------------------------

Commit 1939775 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1939775 ]

PDFBOX-6296: improve javadoc; prevent ClassCastException

> Page label merge doesn't consider /Kids
> ---------------------------------------
>
>                 Key: PDFBOX-6296
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-6296
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.37, 3.0.8 PDFBox
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.38, 3.0.9 PDFBox, 4.0.0
>
>
> From Claude Sonnet 5.5:
> *Possible NPE in page-label merging.* If the destination's {{/PageLabels}} 
> exists but uses {{/Kids}} instead of {{{}/Nums{}}}, {{destNums}} is {{null}} 
> and {{destNums.size()}} throws. A related problem: if the destination has 
> pages but no labels, the merged {{/Nums}} array starts at a non-zero index, 
> which the spec doesn't allow.
> ===
> Additional to the possible NPE, I think the whole merge of page labels is 
> broken: this is a number tree but this isn't considered. (Maybe because the 
> getTreeAsMap method didn't exist until recently)



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to